iepy: Can't create project
When I try to create a project I get the following:
user@MacBook-Pro-de-User:~/Jupyter/nlp_notes/nlp_notes/iepy_examples$ iepy --create test1
/usr/local/lib/python3.5/site-packages/sklearn/utils/fixes.py:55: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
if 'order' in inspect.getargspec(np.copy)[0]:
Traceback (most recent call last):
File "/usr/local/bin/iepy", line 7, in <module>
from iepy.instantiation.command_line import execute_from_command_line
File "/usr/local/lib/python3.5/site-packages/iepy/instantiation/command_line.py", line 26, in <module>
from iepy.preprocess.tagger import download as download_tagger
File "/usr/local/lib/python3.5/site-packages/iepy/preprocess/tagger.py", line 5, in <module>
from nltk.tag.stanford import POSTagger
ImportError: cannot import name 'POSTagger'
I also tried to install the the third party data and tools:
user@MacBook-Pro-de-User:~$ iepy --download-third-party-data
/usr/local/lib/python3.5/site-packages/sklearn/utils/fixes.py:55: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead
if 'order' in inspect.getargspec(np.copy)[0]:
Traceback (most recent call last):
File "/usr/local/bin/iepy", line 7, in <module>
from iepy.instantiation.command_line import execute_from_command_line
File "/usr/local/lib/python3.5/site-packages/iepy/instantiation/command_line.py", line 26, in <module>
from iepy.preprocess.tagger import download as download_tagger
File "/usr/local/lib/python3.5/site-packages/iepy/preprocess/tagger.py", line 5, in <module>
from nltk.tag.stanford import POSTagger
ImportError: cannot import name 'POSTagger'ç
However, I still can install it… any idea of what to do?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (8 by maintainers)
Please read carefully all the information we already provided, because the tip for solving that was already given: JAVAHOME MUST point to the binary, not to a folder.
Extra information for help you searching on the web:
Your
JAVAHOME
variable should point to the java binary, the commandwhich java
should return you where the java binary is. For example, on my machine it’s on/usr/bin/java
so i can do this:export JAVAHOME=/usr/bin/java
The line that i sent you was doing that same thing but without hard coding the path, like this:
export JAVAHOME=$(which java)
on your output the
JAVAHOME
variable is poiting to a folder/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
i’ve just made a fresh installation of the latest version (0.9.6) and ran
--download-third-party-data
and--create
. Everything when smooth.What version are you running? Could you try a fresh installation?