[Python-modules-team] Bug#586395: python-numpy: f2py script needs to use python2.6
Kevin Mitchell
kevmitch at math.sfu.ca
Sat Jun 19 05:27:27 UTC 2010
Package: python-numpy
Version: 1:1.3.0-3+b1
Severity: normal
With the upgrade to python2.6, f2py no longer successfuly compiles a test file
$f2py -c test.f90
...
In file included from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.c:2:
/tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.h:7:20: error: Python.h: No such file or directory
In file included from /usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:61,
from /usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.h:13,
from /tmp/tmpBB0uI6/src.linux-x86_64-2.5/fortranobject.c:2:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/npy_common.h:71:2: error: #error Must use Python with unicode enabled.
...
It looks like /usr/bin/f2py needs to be updated so that the first line
is "#!/usr/bin/env python2.6" rather than "#!/usr/bin/env
python2.5". This allows compilation to proceed as expected.
Kevin
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'testing'), (400, 'stable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34.000 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-numpy depends on:
ii libatlas3gf-base [liblapack.s 3.8.3-22 Automatically Tuned Linear Algebra
ii libblas3gf [libblas.so.3gf] 1.2-7 Basic Linear Algebra Reference imp
ii libc6 2.11.2-1 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.3g 3.2.1-8 library of linear algebra routines
ii python 2.6.5-3 An interactive high-level object-o
ii python-central 0.6.16 register and build utility for Pyt
python-numpy recommends no packages.
Versions of packages python-numpy suggests:
pn python-nose <none> (no description available)
pn python-numpy-dbg <none> (no description available)
ii python-numpy-doc 1:1.3.0-3 NumPy documentation
-- no debconf information
More information about the Python-modules-team
mailing list