[Python-modules-team] Bug#705186: importing numpy triggers RuntimeWarning

Frank Loeffler knarf at cct.lsu.edu
Thu Apr 11 02:29:27 UTC 2013


Package: python-numpy
Version: 1:1.6.2-1.2
Severity: Normal

Importing numpy using python 2.7 produces:

$ python
Python 2.7.3 (default, Jan  2 2013, 13:56:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
/usr/lib/pymodules/python2.6/numpy/random/__init__.py:87:
RuntimeWarning: compiletime version 2.6 of module 'mtrand' does not
match runtime version 2.7
  from mtrand import *

I would expect no warning. Doing the same using 'python2.6' doesn't
produce this warning. Both python2.6-minimal and python2.7-minimal are
installed (Debian wheezy), along with python-numpy which provides mtrand
for both python2.6 and python2.7:

/usr/lib/pymodules/python2.6/numpy/random/mtrand.so
/usr/lib/pymodules/python2.7/numpy/random/mtrand.so
/usr/lib/pyshared/python2.6/numpy/random/mtrand.so
/usr/lib/pyshared/python2.7/numpy/random/mtrand.so

However, it looks to me that even within python2.7 parts of the
python2.6 are used despite the corresponding parts for 2.7 being
available (but that is a gues of mine).

Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130410/34904299/attachment.pgp>


More information about the Python-modules-team mailing list