Hi Sandro,

I tried using f2py today without success, editing /usr/bin/f2py to use
python 2.6 does not solve the issue for me
I can't compile any fortran code to python module,

f2py2.6 -c body.f90 | grep  unicode
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:71:2:
error: #error Must use Python with unicode enabled.
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:71:2:
error: #error Must use Python with unicode enabled.
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/tmp/tmpCwUHXW/src.linux-x86_64-2.6
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c
/tmp/tmpCwUHXW/src.linux-x86_64-2.6/fortranobject.c -o
/tmp/tmpCwUHXW/tmp/tmpCwUHXW/src.linux-x86_64-2.6/fortranobject.o" failed
with exit status 1

Can you suggest any remedy to this ?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-numpy depends on:
ii  libatlas3gf-base [liblapack. 3.6.0-24    Automatically Tuned Linear
Algebra
ii  libblas3gf [libblas.so.3gf]  1.2-7       Basic Linear Algebra Reference
imp
ii  libc6                        2.11.1-3    Embedded GNU C Library: Shared
lib
ii  libgcc1                      1:4.4.4-5   GCC support library
ii  libgfortran3                 4.4.4-5     Runtime library for GNU Fortran
ap
ii  liblapack3gf [liblapack.so.3 3.2.1-8     library of linear algebra
routines
ii  python                       2.5.4-9     An interactive high-level
object-o
ii  python-central               0.6.14+nmu2 register and build utility for
Pyt


-- 
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace

Reply via email to