<div dir="ltr">Hi Sandro, <br><br>I tried using f2py today without success, editing /usr/bin/f2py to use python 2.6 does not solve the issue for me <br>I can't compile any fortran code to python module, <br><br>f2py2.6 -c body.f90 | grep unicode <br>
/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:71:2: error: #error Must use Python with unicode enabled.<br>/usr/lib/python2.6/dist-packages/numpy/core/include/numpy/npy_common.h:71:2: error: #error Must use Python with unicode enabled.<br>
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<br>
<br>Can you suggest any remedy to this ?<br><br clear="all">-- System Information:<br>Debian Release: squeeze/sid<br> APT prefers testing<br> APT policy: (500, 'testing')<br>Architecture: amd64 (x86_64)<br><br>
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br><br>Versions of packages python-numpy depends on:<br>ii libatlas3gf-base [liblapack. 3.6.0-24 Automatically Tuned Linear Algebra<br>
ii libblas3gf [libblas.so.3gf] 1.2-7 Basic Linear Algebra Reference imp<br>ii libc6 2.11.1-3 Embedded GNU C Library: Shared lib<br>ii libgcc1 1:4.4.4-5 GCC support library<br>
ii libgfortran3 4.4.4-5 Runtime library for GNU Fortran ap<br>ii liblapack3gf [liblapack.so.3 3.2.1-8 library of linear algebra routines<br>ii python 2.5.4-9 An interactive high-level object-o<br>
ii python-central 0.6.14+nmu2 register and build utility for Pyt<br><br><br>-- <br>Oz Nahum<br>Graduate Student<br>Zentrum für Angewandte Geologie<br>Universität Tübingen<br><br>---<br><br>Imagine there's no countries<br>
it isn't hard to do<br>Nothing to kill or die for<br>And no religion too<br>Imagine all the people<br>Living life in peace <br><br><br>
</div>