Yes, It seems there is a problem with some sort of header. I have no Idea. Look at this
http://article.gmane.org/gmane.comp.python.numeric.general/3508/match=numpy+core+multiarray+so+_pyunicodeucs4_iswhitespace On Tue, Jul 27, 2010 at 10:03 AM, Matthieu Brucher < [email protected]> wrote: > Python 2.6.5 from Ubuntu? > I tried the same yesterday evening, and it worked like a charm. > > Matthieu > > 2010/7/27 Robert Faryabi <[email protected]>: > > I am using 2.5.6 > > > > Python 2.6.5 (r265:79063, Jun 28 2010, 20:31:28) > > [GCC 4.4.3] on linux2 > > > > > > > > On Tue, Jul 27, 2010 at 9:51 AM, Matthieu Brucher > > <[email protected]> wrote: > >> > >> Which version of Python are you actually using in this example? > >> > >> Matthieu > >> > >> 2010/7/27 Robert Faryabi <[email protected]>: > >> > 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/ > >> > python2.6/dist-packages') > >> > > >> > 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 > >> > <module> > >> > import add_newdocs > >> > File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line > 9, > >> > in > >> > <module> > >> > from lib import add_newdoc > >> > File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line > 4, > >> > in > >> > <module> > >> > 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 > >> > <module> > >> > import multiarray > >> > ImportError: > /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so: > >> > undefined symbol: _PyUnicodeUCS4_IsWhitespace > >> > > >> > > >> > > >> > _______________________________________________ > >> > NumPy-Discussion mailing list > >> > [email protected] > >> > http://mail.scipy.org/mailman/listinfo/numpy-discussion > >> > > >> > > >> > >> > >> > >> -- > >> Information System Engineer, Ph.D. > >> Blog: http://matt.eifelle.com > >> LinkedIn: http://www.linkedin.com/in/matthieubrucher > >> _______________________________________________ > >> NumPy-Discussion mailing list > >> [email protected] > >> http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > > _______________________________________________ > > NumPy-Discussion mailing list > > [email protected] > > http://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > > > > -- > Information System Engineer, Ph.D. > Blog: http://matt.eifelle.com > LinkedIn: http://www.linkedin.com/in/matthieubrucher > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
