Skip to content

predict.py fucntion thrownig error #8

@NarasimmanSaravana1994

Description

@NarasimmanSaravana1994

/home/narasimman/.local/lib/python3.7/site-packages/pandas/compat/init.py:84: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
warnings.warn(msg)
/home/narasimman/.local/lib/python3.7/site-packages/pandas/compat/init.py:84: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
warnings.warn(msg)
Traceback (most recent call last):
File "pred.py", line 102, in
main()
File "pred.py", line 80, in main
clf, labels = pickle.load(f)
TypeError: a bytes-like object is required, not 'str'


How to resolve ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions