[GRASS-user] Problem installing v.class.mlpy on Mac OS X Lion 10.7.5

Christina Ludwig christina_ludwig at gmx.net
Thu Aug 28 00:08:26 PDT 2014


Hi everyone, 

I just started using GRASS GIS and I would like to use the v.class.mlpy extension. So I successfully installed numpy, scipy and mlpy and when I import them in Python they all seem to work fine. However, when I try to install the v.class.mlpy extension using "g.extension extension=v.class.mlpy" I get the following error message: 

"Cannot import mlpy (http://mlpy.sourceforge.net) library. Please install it or ensure that it is on path. (use PYTHONPATH variable)."

The mlpy folder (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mlpy/) is on my PYTHONPATH and if I start Python in the terminal and import mlpy everything works fine. 

If I try to directly import mlpy in the GRASS GIS Python shell I get the following message:

Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import mlpy
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mlpy/__init__.py", line 18, in <module>
    import gsl
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mlpy/gsl.so, 2): Symbol not found: _gsl_sf_fact
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mlpy/gsl.so
  Expected in: flat namespace
 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mlpy/gsl.so

Does anybody know what might be the problem? I would greatly appreciate any help!! :)


Cheers, 
Christina





More information about the grass-user mailing list