[Python-modules-team] Bug#497786: Bug#497786: import of numpy fails for python2.5

Tony Mancill tmancill at debian.org
Sun Sep 7 04:44:43 UTC 2008

Piotr Ożarowski wrote:
> 2008/9/5 tony mancill <tmancill at debian.org>:
>> $ python-dbg ./0831-support.py
> [...]
>> undefined symbol: Py_InitModule4
> if there's no python-yourmodule-dbg package installed (i.e. no
> yourmodule_d.so file), python-dbg returns similar output

Err... yeah.  The python-dbg output is a red-herring.  By changing the
order of the imports of pylab and matplotlib, I was able to get a "new"
error message from python-dbg.

$ python-dbg ./0831-support.py
Traceback (most recent call last):
ImportError: /usr/lib/python2.5/site-packages/matplotlib/_path.so:
undefined symbol: Py_InitModule4
[64840 refs]

Also, I figured out why my pylab plot wasn't displaying (unrelated to
anything with the numpy package), so I'm closing the bug.

Thanks to all those who helped.

More information about the Python-modules-team mailing list