-
Notifications
You must be signed in to change notification settings - Fork 59
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
python 3 - no module named sockwrap #34
Comments
it might be relative imports? i've only tested this with 2.7. i seem to recall python 3 changed that stuff somehow. |
+1 |
1 similar comment
+1 |
In order to import the code using with Python 3, I had to make a couple of changes:
I did some preliminary checking, and more changes may be needed to get the entire module working. |
@mauryquijada thanks! There is also a print parenthesis missing in line 352 |
Thanks guys for corrections. |
Line 1 of init.py, change "from sockwrap import *" to "from .sockwrap import *" |
Thanks, it worked for me too. |
I am running this with python 3.4 and after installing when I run following command
from stanford_corenlp_pywrapper import CoreNLP
I get an error
File "/Volumes/anupam_work/test/stanford_corenlp_pywrapper/stanford_corenlp_pywrapper/init.py", line 1, in
from sockwrap import *
ImportError: No module named 'sockwrap'
So how can this be resolved?
The text was updated successfully, but these errors were encountered: