[SciPy-user] Trouble with f2py

Robert Kern robert.kern@gmail....
Fri Oct 10 01:29:40 CDT 2008


On Fri, Oct 10, 2008 at 01:25, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
> Hi all,
>
> If I run f2py I get
>
> f2py
> Traceback (most recent call last):
>   File "/data/home/nwagner/local/bin/f2py", line 20, in ?
>     from numpy.f2py import main
>   File
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/__init__.py",
> line 125, in ?
>     import add_newdocs
>   File
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/add_newdocs.py",
> line 9, in ?
>     from lib import add_newdoc
>   File
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/__init__.py",
> line 4, in ?
>     from type_check import *
>   File
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/type_check.py",
> line 8, in ?
>     import numpy.core.numeric as _nx
>   File
> "/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/__init__.py",
> line 5, in ?
>     import multiarray
> ImportError:
> /data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/multiarray.so:
> undefined symbol: PyUnicodeUCS2_FromUnicode
>
> How can I resolve this problem ?

It looks like you installed a numpy binary built with a Python built
with UCS2 Unicode support while your Python binary was built with UCS4
Unicode support. Where did you get your Python? Where did you get your
numpy?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list