Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > scipy error undefined symbol: lsame_

Reply
Thread Tools

scipy error undefined symbol: lsame_

 
 
gerardob
Guest
Posts: n/a
 
      04-19-2010

I installed scipy (and all the required libraries) and the following error
appears when i tried run a simple example which uses the optimize package of
scipy. I tried also numpy alone and it works ( at least for printing
numpy.array([10,20,10]))

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-un...p28287715.html
Sent from the Python - python-list mailing list archive at Nabble.com.

 
Reply With Quote
 
 
 
 
Joaquin Abian
Guest
Posts: n/a
 
      04-19-2010
On Apr 19, 7:15*pm, gerardob <gberbeg...@gmail.com> wrote:
> I installed scipy (and all the required libraries) and the following error
> appears when i tried run a simple example which uses the optimize package of
> scipy. I tried also numpy alone and it works ( at least for printing
> numpy.array([10,20,10]))
>
> 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-un...same_-tp282877...
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python,win32com,scipy and vb 6 : no module named scipy vml Python 3 05-03-2007 07:57 AM
typeof x == 'undefined' or x == undefined? -Lost Javascript 13 01-31-2007 12:04 AM
undefined vs. undefined (was: new Array() vs []) VK Javascript 45 09-12-2006 05:26 PM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM
Scipy question about scipy.optimize.leastsq Paxcal Python 0 02-11-2004 07:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57