[Numpy-discussion] numpy errors when importing in Picalo

Michael Abshoff michael.abshoff@googlemail....
Wed Nov 26 20:45:43 CST 2008


igor Halperin wrote:
> Hi,

Hi

> I get numpy errors after I install Picalo (www.picalo.org 
> <http://www.picalo.org>) on Mac OS X 10.4.11 Tiger. I have tried to 
> import numpy in Picalo using the instructions in PicaloCookBook, p.101.
> I get this error message which I don't understand. 
> Per Picalo author (see below for his reply to my email to Picalo 
> discussion forum), I try it here. 
> 
>  I use numpy v. 1.0.4. <http://1.0.4.> distributed with Scipy superpack 
> (http://macinscience.org/?page_id=6) 
> 
> Could anyone please help?

The problem is that numpy was build using a python that was build with 
ucs4 (it is a unicode thing) while the python you run (I assume the 
Apple one) is ucs2. To fix this either build your own numpy or get a 
binary one that is ucs2, but I have no clue where one would get such a 
thing.

> Thanks, and cheers
> Igor

Cheers,

Michael

> sys.path.append('/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/')
> import numpy
> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
>   File 
> "/Applications/sage/local/lib/python2.5/site-packages/numpy/__init__.py", 
> line 93, in <module>
>   File 
> "/Applications/sage/local/lib/python2.5/site-packages/numpy/add_newdocs.py", 
> line 9, in <module>
>   File 
> "/Applications/sage/local/lib/python2.5/site-packages/numpy/lib/__init__.py", 
> line 4, in <module>
>   File 
> "/Applications/sage/local/lib/python2.5/site-packages/numpy/lib/type_check.py", 
> line 8, in <module>
>   File 
> "/Applications/sage/local/lib/python2.5/site-packages/numpy/core/__init__.py", 
> line 5, in <module>
> ImportError: 
> dlopen(/Applications/sage/local/lib/python2.5/site-packages/numpy/core/multiarray.so, 
> 2): Symbol not found: _PyUnicodeUCS4_FromUnicode
>   Referenced from: 
> /Applications/sage/local/lib/python2.5/site-packages/numpy/core/multiarray.so
>   Expected in: dynamic lookup
> 
>  Reply
> 		
>  Forward
> 		
> 	
> 
> 
>       Conan C. Albrecht
> 
>  to me, users
> 
> 	
> show details Nov 23 (3 days ago)  [smime.p7s]
> 	
> 	
> Reply
> 	
> 	
> 
> You're doing everything right from my perspective.  It looks like a 
> problem with NumPy.  The stack trace goes to multiarray.so in their core 
> toolkit.  I think you should hit their forums and see if they can help.
> 
> One idea is that Picalo uses unicode for all data values.  Perhaps numpy 
> can't handle unicode?
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion



More information about the Numpy-discussion mailing list