[Numpy-discussion] Problem with importing numpy in Ubuntu

Robert Faryabi robert.faryabi@gmail....
Tue Jul 27 08:46:33 CDT 2010

I am new to numpy. Hopefully this is a correct forum to post my question.

I have Ubuntu Luci system. I installed Python 2.6.5 and Python 3.0 as well
as python-numpy using Ubuntu repository.
When I import the numpy into python, I get the following error.

>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy

The package cannot be located.

Then I tried to point the interpreter to the numpy

>>> sys.path.append('/usr/lib/

and import it

>>> import numpy

I get the following error

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line 130, in
    import add_newdocs
  File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line 9, in
    from lib import add_newdoc
  File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line 4, in
    from type_check import *
  File "/usr/lib/python2.6/dist-packages/numpy/lib/type_check.py", line 8,
in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/python2.6/dist-packages/numpy/core/__init__.py", line 5, in
    import multiarray
ImportError: /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so:
undefined symbol: _PyUnicodeUCS4_IsWhitespace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100727/b93b6e31/attachment.html 

More information about the NumPy-Discussion mailing list