[Numpy-discussion] Import problem

Tommy Grav tgrav@mac....
Fri Apr 13 13:42:45 CDT 2007

I am trying to import scipy.optimize on my Mac OS X PowerPc and get  
this error

[tgrav@skathi] Python/Astronomy --> python
ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on
Python 2.4.3 (#1, Apr  3 2006, 18:07:18)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import scipy.optimize
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/optimize/__init__.py", line 7, in ?
     from optimize import *
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/optimize/optimize.py", line 26, in ?
     import linesearch
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/optimize/linesearch.py", line 3, in ?
     import minpack2
ImportError: Failure linking new module: /Library/Frameworks/ 
optimize/minpack2.so: Library not loaded: /usr/local/lib/libg2c.0.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/ 
   Reason: image not found

How do I get a hold of libg2c.0.dylib for my system?


More information about the Numpy-discussion mailing list