dirko / pyhcrf

A hidden conditional random field (HCRF) implementation in Python.
BSD 2-Clause "Simplified" License
27 stars 10 forks source link

Unable to import Pyhcrf #5

Open sanyam1997 opened 7 years ago

sanyam1997 commented 7 years ago

I am having python 2.7 along with updated versions of cython , numpy and scipy. Despite that i am unable to import Pyhcrf because of undefined symbol in a file named algortithm.so which i am unable to edit. Please suggest some solution soon. Error : Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import pyhcrf Traceback (most recent call last): File "", line 1, in File "build/bdist.linux-x86_64/egg/pyhcrf/init.py", line 3, in File "build/bdist.linux-x86_64/egg/pyhcrf/hcrf.py", line 11, in File "build/bdist.linux-x86_64/egg/pyhcrf/algorithms.py", line 7, in File "build/bdist.linux-x86_64/egg/pyhcrf/algorithms.py", line 6, in bootstrap ImportError: /home/hp/.cache/Python-Eggs/pyhcrf-0.0.1-py2.7-linux-x86_64.egg-tmp/pyhcrf/algorithms.so: undefined symbol: npy_logaddexp

dirko commented 7 years ago

Could you maybe post the versions of cython, numpy, and scipy? I'll then check whether I can reproduce - otherwise I'll update the requirements file.

8-chems commented 7 years ago

@dirko, I am facnig the same problem, could you please share us the version of the used: numpy, scipy
, cython.

8-chems commented 7 years ago

I use these versions: numpy: 1.12.1 scipy: 0.18.1 cython: 0.25.2