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 _permutohedral #1
Comments
hi, i have the same problem. Did you fix that? |
The code runs with no problem on my personal computer and the computer in my office. The lib is complied under win64, so that might be the cause. |
hi, while running setup.py I get the following error. do you have any idea? onur@onur-GE62VR-6RF:~/tf_kodlar/CRF-RNN_Tensorflow-master/src$ python3 setup.py build_ext --inplace Thanks for the code. |
What is the numpy version you are using? |
it is 1.13.3. if you need, i use python3.5. If you would like to check it out, I asked a question in stackoverflow, with a little more detail explained. https://stackoverflow.com/questions/46593778/building-crf-rnn-tensorflow-implementation |
You can try installing the following packages: I am not sure whether it can work, but you can have a try. |
it did not work. At the step 5, I run with python3 setup.py.... right?
And what is the $PYTHON_PATH you mentioned at the step 4? Maybe I wrote a wrong path. How can I determine what is my path?
Thanks for your concern
|
Try changing '$PYTHON_PATH/Lib/site-packages/numpy/core/include' to '/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy', or the folder that contains the header files of numpy in your python directory. |
I did, actually I modified setup with import and np.get_include() instead of whole pathname. No use, same error remains :( |
Probably the 'permutohedral_wrap.cxx' you generated using swig is not correct. Try using the following one |
You are correct. The problem seems to be solved. I will let you know when I truly train the CRF. Thanks. |
Hi,
python main_example.py
Traceback (most recent call last):
File "main_example.py", line 5, in
import CRFRNN
File "/home/molys/product/NER/CRF-RNN_Tensorflow/CRFRNN.py", line 8, in
import permutohedral
File "/home/molys/product/NER/CRF-RNN_Tensorflow/permutohedral.py", line 17, in
_permutohedral = swig_import_helper()
File "/home/molys/product/NER/CRF-RNN_Tensorflow/permutohedral.py", line 16, in swig_import_helper
return importlib.import_module('_permutohedral')
File "/usr/lib64/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named _permutohedral
The text was updated successfully, but these errors were encountered: