[mod_python] SOLVED ImportError: cannot import name psp SOLVED

Reed L. O'Brien reed at intersiege.com
Sun Mar 28 01:22:28 EST 2004


Upgrading to 3.1.3 seems to have fixed this.  Sorry again about the 
double email.


r


Reed L. O'Brien wrote:

>I apologize if this is twice my mail webmail interface timed out...
>but I know sometimes it sends anyhow.
>
>
>*************************************************************
>The Error
>
>   Mod_python error: "PythonHandler mod_python.publisher"
>
>   Traceback (most recent call last):
>
>      File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", 
>        line 332, in HandlerDispatch
>      result = object(req)
>
>      File
>"/usr/local/lib/python2.3/site-packages/mod_python/publisher.py", 
>line 153, in handler
>      module = apache.import_module(module_name, req.get_config(), [path])
>
>      File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py",
>line 499, in import_module
>      module = imp.load_module(mname, f, p, d)
>
>      File "/usr/local/www/data/intersiege/py_dir/index.py", line 31, in ?
>        from mod_python import apache, psp
>
>    ImportError: cannot import name psp
>**************************************************************
>
>
>
>**************************************************************
>The System:
>FreeBSD 4.9
>Apache2.0.48
>mod_python3.0.3 (will try upgrading to 3.1.3)
>Python 2.3.3
>**************************************************************
>
>
>
>**************************************************************
>http.conf
>   LoadModule ..........so
>
>
>   DirectoryIndex index.php index.py default.php default.py index.html
>
><Directory /usr/local/www/data/company/py_dir>
>   AddHandler python-program .py
>   #SetHandler mod_python
>   #AddHandler mod_python .py
>   #PythonHandler mptest
>   PythonHandler mod_python.publisher
>   PythonDebug On
></Directory>
>***************************************************************
>I have tried several variations in the config.  The only way I can get he
>mod to process anything is with the
>AddHandler python-program .py
>set, none of the others work they all spit out the code on the page...
>I am stuck.
>
>anyone?
>
>TIA,
>reed
>
>4.6692016090
>
>
>_______________________________________________
>Mod_python mailing list
>Mod_python at modpython.org
>http://mailman.modpython.org/mailman/listinfo/mod_python
>  
>



More information about the Mod_python mailing list