[SciPy-User] problem running SciPy

Glen Jenness glenjenness@gmail....
Fri Mar 16 15:58:17 CDT 2012


Pauli,
Ah that did the trick!  I had it in that directory just for testing
purposes, but once I had to go to my other python libraries it went away.

I am currently having another problem related to importing in SciPy's
optimizers.

If I do: python -c "import scipy.optimize"

I get:

Traceback (most recent call last):
  File "<string>", line 1, in ?
  File
"/home/gjenness/lib/lib64/python2.4/site-packages/scipy/optimize/__init__.py",
line 132, in ?
    from lbfgsb import fmin_l_bfgs_b
  File
"/home/gjenness/lib/lib64/python2.4/site-packages/scipy/optimize/lbfgsb.py",
line 28, in ?
    import _lbfgsb
ImportError: /opt/intel/mkl/10.0.3.020/lib/em64t/libmkl_intel_thread.so:
undefined symbol: omp_in_parallel

I am currently trying to figure this out, but if anyone has any advice
that'll save the amount of Google'ing I'll have to do, it'd be appreciated
:)

On Fri, Mar 16, 2012 at 3:52 PM, Pauli Virtanen <pav@iki.fi> wrote:

> Hi,
>
> 16.03.2012 21:34, Glen Jenness kirjoitti:
> [clip]
> > [gjenness@pople tmp]$ python -c "import scipy; scipy.test()"
> > Traceback (most recent call last):
> >   File "<string>", line 1, in ?
> >   File "/home/gjenness/programs/scipy-0.10.1/scipy/__init__.py", line
> > 128, in ?
> >     raise ImportError(msg)
> > ImportError: Error importing scipy: you cannot import scipy while
> >         being in scipy source directory; please exit the scipy source
> >         tree first, and relaunch your python intepreter.
> [clip]
> > python setup.py config --compiler=intelem --fcompiler=intelem build_clib
> > --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem
> > --fcompiler=intelem install
> --prefix=/home/gjenness/programs/scipy-0.10.1/
> >
> > If anyone can help me resolve this problem it'd be greatly appreciated.
>
> You probably have done the following:
>
>        cd ~/programs/
>        tar xzf scipy-0.10.1.tar.gz
>        cd scipy-0.10.1
>        python setup.py ..... --prefix=~/programs/scipy-0.10.1/
>
> The correct way would be either
>
>        cd ~/tmp
>        tar xzf scipy-0.10.1.tar.gz
>        cd scipy-0.10.1
>        python setup.py ..... --user
>
> This installs everything under ~/.local. Or,
>
>        python setup.py ..... --prefix=~/programs/scipy-0.10.1/
>
> but now you need to set your PYTHONPATH to point to
>
>        ~/programs/scipy-0.10.1/lib/python2.X/site-packages
>
> and not to
>
>        ~/programs/scipy-0.10.1
>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



-- 
Dr. Glen Jenness
Schmidt Group
Department of Chemistry
University of Wisconsin - Madison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120316/06d5bfe2/attachment.html 


More information about the SciPy-User mailing list