[Python-modules-team] Bug#519440: python-scipy: take care about deprecation warnings from numpy
Yaroslav Halchenko
debian at onerussian.com
Thu Mar 12 17:17:34 UTC 2009
Package: python-scipy
Version: 0.6.0-12
Severity: normal
Any code which uses scipy and numpy on debian sid now provokes a flood of deprecation warnings like:
In [1]:import scipy
/usr/lib/python2.5/site-packages/scipy/misc/__init__.py:25: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest
test = NumpyTest().test
In [4]:mimport scipy.linalg
/usr/lib/python2.5/site-packages/scipy/linalg/__init__.py:32: DeprecationWarning: NumpyTest will be removed in the next release; please update your code to use nose or unittest
test = NumpyTest().test
and more of scipy you import more you get of those... why should I
care about receiving these ones if I don't use NumpyTest per se?
If you are aware of this issue I would humbly appreciate if some
action is taken... my little mind finds only a cruel suggestion to wrap
those test instantiations within
warnings.simplefilter('ignore', DeprecationWarning)
test = NumpyTest().test
warnings.simplefilter('defaul', DeprecationWarning)
but I hope that there is a better way, like defining a custom filter to
catch those known deprecation issues
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'stable'), (300, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-scipy depends on:
ii libatlas3gf-base [libla 3.6.0-22.1~debug Automatically Tuned Linear Algebra
ii libatlas3gf-sse [liblap 3.6.0-22.1~debug Automatically Tuned Linear Algebra
ii libatlas3gf-sse2 [libla 3.6.0-22.1~debug Automatically Tuned Linear Algebra
ii libblas3gf [libblas.so. 1.2-2 Basic Linear Algebra Subroutines 3
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libfftw3-3 3.1.2-3.1 library for computing Fast Fourier
ii libgcc1 1:4.3.1-9 GCC support library
ii libgfortran3 4.3.1-9 Runtime library for GNU Fortran ap
ii liblapack3gf [liblapack 3.1.1-1 library of linear algebra routines
ii libstdc++6 4.3.1-9 The GNU Standard C++ Library v3
ii libsuitesparse-3.1.0 3.1.0-3 collection of libraries for comput
ii python 2.5.2-2 An interactive high-level object-o
ii python-central 0.6.11 register and build utility for Pyt
ii python-imaging 1.1.6-3 Python Imaging Library
ii python-numpy 1:1.2.1-1 Numerical Python adds a fast array
Versions of packages python-scipy recommends:
ii g++ [c++-compiler] 4:4.3.1-2 The GNU C++ compiler
ii g++-2.95 [c++-compiler] 1:2.95.4-27 The GNU C++ compiler
ii g++-3.2 [c++-compiler] 1:3.2.3-9 The GNU C++ compiler
ii g++-3.3 [c++-compiler] 1:3.3.6-15 The GNU C++ compiler
ii g++-4.0 [c++-compiler] 4.0.3-7 The GNU C++ compiler
ii g++-4.1 [c++-compiler] 4.1.2-25 The GNU C++ compiler
ii g++-4.2 [c++-compiler] 4.2.4-6 The GNU C++ compiler
ii g++-4.3 [c++-compiler] 4.3.1-9 The GNU C++ compiler
Versions of packages python-scipy suggests:
ii python-profiler 2.5.2-1 deterministic profiling of any Pyt
-- no debconf information
More information about the Python-modules-team
mailing list