[Python-modules-team] Bug#534445: python-numpy: import numpy package fails if python is used with optimization

gerhard h9204473 at wu.ac.at
Wed Jun 24 12:11:01 UTC 2009

Package: python-numpy
Version: 1:1.1.0-3
Severity: important

import package fails if PYTHONOPTIMIZE=2 !

python -OO -c "import numpy"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 93, in <module>
    import add_newdocs
  File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 19, in <module>
    from financial import *
  File "/usr/lib/python2.5/site-packages/numpy/lib/financial.py", line 78, in <module>
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24.redo.alexanderhubmann (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-numpy depends on:
ii  libblas3gf [libblas.so.3gf]  1.2-2       Basic Linear Algebra Subroutines 3
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  libgcc1                      1:4.3.2-1.1 GCC support library
ii  libgfortran3                 4.3.2-1.1   Runtime library for GNU Fortran ap
ii  liblapack3gf [liblapack.so.3 3.1.1-1     library of linear algebra routines
ii  python                       2.5.2-3     An interactive high-level object-o
ii  python-central               0.6.8       register and build utility for Pyt

python-numpy recommends no packages.

Versions of packages python-numpy suggests:
pn  python-numpy-dbg              <none>     (no description available)
pn  python-numpy-doc              <none>     (no description available)

-- no debconf information

More information about the Python-modules-team mailing list