[SciPy-User] Error when trying to use scipy.optimize.fmin
Astier Frank
frank.astier at gmail.com
Thu Apr 7 12:08:11 EDT 2011
Hi -
I'm trying to use fmin from scipy.optimize, and I get the following error. My machine is a MBP with MacOSX 10.6.7. I'm running the example below with the system's Python 2.6.1, which is a universal binary supporting 3 architectures (see below). I got scipy from the superpack maintained by Cristopher Fonnesbeck, who couldn't reproduce and has never seen that for any other user... Any idea??
frank-2|506|/Library/Python/2.6/site-packages>file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 3 architectures
/usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386): Mach-O executable i386
/usr/bin/python (for architecture ppc7400): Mach-O executable ppc
frank-2|505|/Library/Python/2.6/site-packages>/usr/bin/python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.optimize import fmin
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/__init__.py", line 7, in <module>
from optimize import *
File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/optimize.py", line 28, in <module>
from linesearch import \
File "/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/linesearch.py", line 1, in <module>
from scipy.optimize import minpack2
ImportError: dlopen(/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/minpack2.so, 2): Symbol not found: _dcsrch_
Referenced from: /Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/minpack2.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110407-py2.6-macosx-10.6-universal.egg/scipy/optimize/minpack2.so
>>>
Frank
More information about the SciPy-User
mailing list