[SciPy-user] Trouble with f2py

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Oct 10 01:46:37 CDT 2008


On Fri, 10 Oct 2008 01:29:40 -0500
  "Robert Kern" <robert.kern@gmail.com> wrote:
> 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?
> 
Hi Robert,

I have modified the first line in f2py from

#!/usr/bin/env python

to

#!/usr/bin/env /data/home/nwagner/local/bin/python

Now it works. Sorry for the noise.

BTW, can you reproduce the problem concerning mebdfdae.f 
and f2py (my previous mail on the list) ?

Nils
  


More information about the SciPy-user mailing list