Using MLPY on a Mac

781 views
Skip to first unread message

Robert Evans

unread,
Jan 18, 2013, 8:50:38 AM1/18/13
to mlpy-g...@googlegroups.com
Hi people, I hope someone can help me with this.

I'm trying to use MLPY on a mac, I've installed it (though maybe not properly), but when I type "import mlpy" in Python I get this error:

import mlpy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/Users/revans/Programming/Python/<ipython-input-22-f4eb31cdba5b> in <module>()
----> 1 import mlpy

/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/mlpy/__init__.py in <module>()
     16     from .lcs import *
     17 else:
---> 18     import gsl
     19     from libsvm import *
     20     from liblinear import *

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/mlpy/gsl.so, 2): Symbol not found: _gsl_sf_fact
  Referenced from: /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/mlpy/gsl.so
  Expected in: dynamic lookup

So it seems like there is some kind of problem with GSL.  I installed GSL with macports, and from the website, but python can't seem to find it.  If I type "import gsl" in Python I get:

import gsl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/Users/robertevans/Programming/Python/<ipython-input-23-426c2d498189> in <module>()
----> 1 import gsl

ImportError: No module named gsl

I think perhaps I need to set a path or something like that.  Anyone know?

Failing that, anybody know any other good Python libraries that come with Dynamic Time Warping?

Thanks.

Jelena Chuklina

unread,
Jun 3, 2013, 4:57:06 PM6/3/13
to mlpy-g...@googlegroups.com
I can't also import gsl:
>>> import mlpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mlpy/__init__.py", line 18, in <module>

    import gsl
ImportError: No module named gsl


пятница, 18 января 2013 г., 14:50:38 UTC+1 пользователь Robert Evans написал:

Eduardo Queiroz Peres

unread,
Dec 5, 2013, 3:17:05 PM12/5/13
to mlpy-g...@googlegroups.com
I had the same problem. I installed pygsl and now the import works. 

Reply all
Reply to author
Forward
0 new messages