Open shebasarah opened 7 years ago
After removing all the references to SIGPIPE , I still can;t download morph2.en. Attached is the log:
polyglot download morph2.en
[polyglot_data] Error loading morph2.en: Package 'morph2.en' not found
[polyglot_data] in index
Error installing package. Retry? [n/y/e]
y
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\polyglot-script.py", line 11, in
@KirtimanS @alexgarel @pythonabehs Did this get solved? I have this error: "AttributeError: 'NoneType' object has no attribute 'id'"
Using polyglot-16.7.4 and python 3.5 on windows 7
C:\Users\a>polyglot download morph2.en Traceback (most recent call last): File "C:\Users\a\Anaconda3\Scripts\polyglot- script.py", line 11, in load_entry_point('polyglot==16.7.4', 'console_scripts', 'polyglot')() File "C:\Users\a\Anaconda3\lib\site-packages\setuptools-36.0.0-py3.5.egg\pkg_resourcesinit.py", line 561, in load_entry_point File "C:\Users\a\Anaconda3\lib\site-packages\setuptools-36.0.0-py3.5.egg\pkg_resourcesinit.py", line 2649, in load_entry_point File "C:\Users\a\Anaconda3\lib\site-packages\setuptools-36.0.0-py3.5.egg\pkg_resourcesinit.py", line 2303, in load File "C:\Users\a\Anaconda3\lib\site-packages\setuptools-36.0.0-py3.5.egg\pkg_resourcesinit.py", line 2309, in resolve File "C:\Users\a\Anaconda3\lib\site-packages\polyglot-16.7.4-py3.5.egg\polyglotmain.py", line 9, in from signal import signal, SIGPIPE, SIG_DFL ImportError: cannot import name 'SIGPIPE'
This seems like a bug of polyglot on windows. A quick local fix (as suggested by @alexgarel) is to edit this file and remove all ref to SIGPIPE (won't affect the behaviour of polyglot).