gilgamesh: importing scipy(python error)
Craig Maloney
craigmaloney at cmu.edu
Wed Oct 13 09:04:14 EDT 2010
Hi Kamran.
You need to make sure that the versions of scipy, numpy, and the
python interpreter itself were all built in a consistent way. The
correct version of the Py_InitModule4_64 routine should be provided (I
think) by the standard support libraries for the python interpreter
and not the site-package (scipy/numpy). But you must use the same
version of the python interpreter for which the package (scipy) was
built!
This scipy (the one for python/scipy-0.80-gcc) was built for
python2.6. Maybe whoever in the Kitchin group (Spencer?/John?) set up
the python/scipy-0.80-gcc module can help us find the appropriate
python interpreter.
--Craig
On Oct 12, 2010, at 10:12 PM, Kamran Karimi wrote:
> Dear Gilgamesh users,
>
> I'm trying to use the sparse libraries in scipy installed on
> Gilgamesh.
>
> After typing "module load python/scipy-0.80-gcc \n python \n import
> scipy.sparse", I get the following error message:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/opt/python/scipy/scipy-0.8.0-gcc/lib/python2.6/site-packages/
> scipy/sparse/__init__.py", line 6, in ?
> from csr import *
> File "/opt/python/scipy/scipy-0.8.0-gcc/lib/python2.6/site-packages/
> scipy/sparse/csr.py", line 12, in ?
> from sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
> File "/opt/python/scipy/scipy-0.8.0-gcc/lib/python2.6/site-packages/
> scipy/sparse/sparsetools/__init__.py", line 4, in ?
> from csr import *
> File "/opt/python/scipy/scipy-0.8.0-gcc/lib/python2.6/site-packages/
> scipy/sparse/sparsetools/csr.py", line 7, in ?
> import _csr
> ImportError: /opt/python/scipy/scipy-0.8.0-gcc/lib/python2.6/site-
> packages/scipy/sparse/sparsetools/_csr.so: undefined symbol:
> Py_InitModule4_64
>
> Please help me.
>
> Regards,
> Kamran Karimi
> Graduate Student
> Mechanics, Materials and Computing
> Civil and Environmental Engineering
> Carnegie Mellon University
> Pittsburgh PA 15213
>
> _______________________________________________
> gilgamesh-users mailing list
> gilgamesh-users at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/gilgamesh-users
>
-----------------------------------------------
Contact info:
http://www.ce.cmu.edu/People/faculty/maloney.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/gilgamesh-users/attachments/20101013/c4aa7383/attachment.html
More information about the gilgamesh-users
mailing list