scipy error undefined symbol: lsame_

Discussion in 'Python' started by gerardob, Apr 19, 2010.

  1. gerardob

    gerardob Guest

    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-undefined-symbol:-lsame_-tp28287715p28287715.html
    Sent from the Python - python-list mailing list archive at Nabble.com.
    gerardob, Apr 19, 2010
    #1
    1. Advertising

  2. On Apr 19, 7:15 pm, gerardob <> 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-undefined-symbol:-lsame_-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
    Joaquin Abian, Apr 19, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. fredy
    Replies:
    2
    Views:
    387
    jimleaton
    Jul 16, 2004
  2. modemer
    Replies:
    0
    Views:
    541
    modemer
    Mar 4, 2005
  3. Paxcal
    Replies:
    0
    Views:
    1,814
    Paxcal
    Feb 11, 2004
  4. vml
    Replies:
    3
    Views:
    674
  5. Replies:
    6
    Views:
    1,698
Loading...

Share This Page