error:
Traceback (most recent call last):
File "main_test.py", line 2, in <module>
from scipy import optimize
File
"/home/gberbeglia/python/Python-2.6.5/lib/python2.6/site-packages/scipy/optimize/__init__.py",
line 11, in <module>
from lbfgsb import fmin_l_bfgs_b
File
"/home/gberbeglia/python/Python-2.6.5/lib/python2.6/site-packages/scipy/optimize/lbfgsb.py",
line 30, in <module>
import _lbfgsb
ImportError:
/home/gberbeglia/python/Python-2.6.5/lib/python2.6/site-packages/scipy/optimize/_lbfgsb.so:
undefined symbol: lsame_
gberbeglia@actarus:~/python/mycodes>
Any ideas on how to solve this problem? Thanks.
PS: the example is below:
import numpy
from scipy import optimize
a = numpy.array([10,20,10])
print a
def f_(x):
return x*x
x,f,d = optimize.fmin_l_bfgs_b(f_,[0.1],fprime=None, approx_grad = True,
bounds = [(-10000,10000)], iprint=30, maxfun=150000)
--
View this message in context: http://old.nabble.com/scipy-error-undefined-symbol%3A-lsame_-tp28287715p28287715.html
Sent from the Python - python-list mailing list archive at Nabble.com.
Um... The snip works perfect on my computer. Just copy and paste.
What libraries are you talking about you had to download? Are you on
windows or linux? On windows you dont need to download anything but
numpy and scipy packages.
joaquin
This is a FORTRAN symbol. It means that this extension module was not
linked correctly to the FORTRAN standard library appropriate for your
system.
If you need more help, please ask scipy questions on the scipy mailing list.
http://www.scipy.org/Mailing_Lists
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though
it had
an underlying truth."
-- Umberto Eco