[mod_python] problems with 'import socket'

Andy Cavatorta andy at nervebox.com
Mon Feb 21 00:06:48 EST 2005


Hi folks,
I'm getting an import error through mod_python that I'm not getting on 
the command line.  I'd appreciate any insight anyone has into this.

When I call "import socket" at the top of a script that I call from a 
command line, everything works fine.  When I call "import socket" 
through mod_python, I get "ImportError: No module named socket".  This 
is strange, because I can import other modules like sys and mod_python 
just fine. 

Does anyone have any idea what would cause this kind of behaviour?  
Thanks. I'm running Fedora Core 3 and Apache 2.0.52

 - andy c




More information about the Mod_python mailing list