[Python-bugs-list] [ python-Bugs-675671 ] PyImport_ImportModule fails in subthread/subinterpreter
SourceForge.net
noreply@sourceforge.net
Mon, 27 Jan 2003 11:20:13 -0800
Bugs item #675671, was opened at 2003-01-27 11:20
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=675671&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Dave Kuhlman (dkuhlman)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyImport_ImportModule fails in subthread/subinterpreter
Initial Comment:
PyImport_ImportModule() fails when called after a new
sub-interpreter has been created. The property
"meta_path" is missing from the sys module, causing
PyImport_ImportModule() to fail (down in Python/import.c).
You can reproduce this error by running the importexc
demo in the Demo/embed directory.
And the attached file is a modified version of
Demo/embed/importexc that prints out the contents of the
sys module (dir(sys)) twice. "meta_path" is missing after
the call to Py_NewInterpreter().
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=675671&group_id=5470