Tim Hatch

Weblog | Photos | Projects | Panoramas | About

undefined symbol: Py_InitModule4_64 07 Aug, 2008

We ran into this error on Debian this morning, with a system that had more than one Python.

Typically this means that an extension was compiled against the wrong Python.h.

This just means that the calling Python interpreter and the extension don't use the same version (one is Python 2.4, the other 2.5). They were both 64-bit but the name changed in http://www.python.org/dev/peps/pep-0353/

Some commands to help debug this are ldd (to show dymanic library linking) and nm (to list exports).