[mod_python] loading mod_python.apache module interactively

Paul Sholtz paulsholtz2004 at hotmail.com
Wed May 5 16:08:26 EST 2004

If I start up an interactive, command-line session of Python, and issue the 
following import statement:

>>from mod_python import apache

I wind up getting an ImportError, specifically:

ImportError: No module named _apache

If I wind up issuing the same import statement a second time, it works just 
fine, and I can work interactively w/ the apache module and what not.

Why is this? Is this a bug? Not that I have any desire to work w/ apache 
module interactively, but it seems like the interpreter *should* be able to 
load all mod_python modules on demand regardless, shouldn't it??


MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

More information about the Mod_python mailing list