/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 ?
/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 ?