[mod_python] mod_python and Python 2.3

Josh Hoyt josh at janrain.com
Mon Jan 20 15:31:14 EST 2003


> This is a Python bug in Py_NewInterpreter() (or in some other place that
> makes Py_NewInterpreter() fail). I sumbitted it to the Python developers
> but I got no reply yet. The bug is described here:
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=668708&group_id=5470&atid=105470

The problem appears to be that meta_path is not being
initialized in the new interpreter. Adding
_PyImportHooks_Init to Py_NewInterpreter seems to fix the
problem, initializing the new import hooks before trying to
import modules into the new interpreter.

Patch 671459 contains this fix.

Yeah for mod_python in Python 2.3!

Josh



More information about the Mod_python mailing list