Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with pickle file!! #358

Open
Cyborg-07 opened this issue Sep 25, 2022 · 2 comments
Open

Issues with pickle file!! #358

Cyborg-07 opened this issue Sep 25, 2022 · 2 comments

Comments

@Cyborg-07
Copy link

The following error is being thrown while running nb_author_id, svm_author_id etc. The problem seems to be in pickle file. I am not able to find any solution as of now. Any help is appreciated.

D:\MyGIT\ud120-projects\venv\Scripts\python.exe D:\MyGIT\ud120-projects\svm\svm_author_id.py
Traceback (most recent call last):
File "D:\MyGIT\ud120-projects\svm\svm_author_id.py", line 20, in
features_train, features_test, labels_train, labels_test = preprocess()
File "../tools/email_preprocess.py", line 35, in preprocess
word_data = joblib.load(words_file_handler)
File "D:\MyGIT\ud120-projects\venv\lib\site-packages\joblib\numpy_pickle.py", line 595, in load
obj = _unpickle(fobj)
File "D:\MyGIT\ud120-projects\venv\lib\site-packages\joblib\numpy_pickle.py", line 529, in _unpickle
obj = unpickler.load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatchkey
File "C:\Python27\lib\pickle.py", line 972, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Process finished with exit code 1

@gramdharey
Copy link

Have you been able to resolve the issue?

@devkilly
Copy link

devkilly commented Sep 9, 2023

Looks like the code base was updated to use python3, but the course still tells you to use python2.7
Run with python 3, it solved this issue for me. You may need to go back and install requirements on python3, the readme on this git page tells you how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants