使用pythons libghmm库的ImportError

时间:2012-08-14 21:10:49

标签: python linux import importerror hidden-markov-models

我已按照installation directions安装GHMM库。但是,我仍然收到以下错误:

Python 2.6.6 (Apr 11 2011, 15:50:32) 
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ghmm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ghmm.py", line 112, in <module>
    import ghmmwrapper
  File "ghmmwrapper.py", line 25, in <module>
    _ghmmwrapper = swig_import_helper()
  File "ghmmwrapper.py", line 17, in swig_import_helper
    import _ghmmwrapper
ImportError: libghmm.so.1: cannot open shared object file: No such file or directory

我尝试将LD_PRELOAD_PATH变量更改为/usr/local/lib无效。

此外,当我尝试找到libghmm时,我得到以下内容,因此库绝对存在:

% locate libghmm
/usr/local/lib/libghmm.a
/usr/local/lib/libghmm.la
/usr/local/lib/libghmm.so
/usr/local/lib/libghmm.so.1
/usr/local/lib/libghmm.so.1.0.0

有什么想法吗?

0 个答案:

没有答案