-
Notifications
You must be signed in to change notification settings - Fork 144
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
ImportError: No module named copy_reg #3
Comments
Looks like an issue with pickle and Windows. |
I've been struggling with the same problem, and I found that the problem is, git is messing with EOF. After I downloaded it as zip, it compiled just fine. |
@pavelmalai This fixed the issue for me. Thanks! |
See https://stackoverflow.com/questions/556269/importerror-no-module-named-copy-reg-pickle and consider saving as binary instead of text when you open the file. |
Hi maronin and pavelmalai. may i know what did you guys download as a zip file? Im struggling with the same errors |
@Ayla93 Just download the project by using the Download Zip button, and not by cloning it. |
Issues with pickle?
Windows 10 python 2.7.6,
C:\Users\valentin\textteaser_nltk\Scripts\python.exe D:/dev_earthcube/textteaser/test.py
Traceback (most recent call last):
File "D:/dev_earthcube/textteaser/test.py", line 12, in
sentences = tt.summarize(title, text)
File "D:\dev_earthcube\textteaser\textteaser__init__.py", line 13, in summarize
result = self.summarizer.summarize(text, title, source, category)
File "D:\dev_earthcube\textteaser\textteaser\summarizer.py", line 11, in summarize
sentences = self.parser.splitSentences(text)
File "D:\dev_earthcube\textteaser\textteaser\parser.py", line 61, in splitSentences
tokenizer = nltk.data.load('file:' + os.path.dirname(os.path.abspath(file)) + '/trainer/english.pickle')
File "C:\Users\valentin\textteaser_nltk\lib\site-packages\nltk\data.py", line 786, in load
resource_val = pickle.load(opened_resource)
ImportError: No module named copy_reg
The text was updated successfully, but these errors were encountered: