debug build: import problem

benevilent at benevilent at
Tue Sep 14 13:23:11 CEST 2004


I have made a Python build with the flag --with-pydebug. When I try to
import modules such as NumPy's, I get errors like the

File "/usr/lib/python2.3/site-packages/Numeric/", line 91, in
    import multiarray
ImportError: /usr/lib/python2.3/site-packages/Numeric/
undefined symbol: Py_InitModule4

I presume this means that a debug build of python uses a different
function for initialising a python module. Is it possible to avoid the
situation where each module not included within the Python distribuition
requires explicit support such that it can be used with a debug build of


More information about the Python-list mailing list