Jochen Preusche
jp at jochenpreusche.de
Tue Nov 6 14:38:39 EST 2007
oops -- fixed. :o) It shouldn't be placed in a subdir .. Jochen Preusche schrieb: > Hi folks, > > I just started with and mod_python. I get stuck with the Error message > below. Any help would be appreciated. > > I'm using Ubuntu 7.04, Lampp, Apache/2.2.4 (Unix), mod_python/3.3.1 and > Python/2.5.1 > > I followed the instructions to this point > [http://modpython.org/live/current/doc-html/inst-trouble.html] > > testing with the script describet at the tutorial. Unregarded the > scripts content it reports this one: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > MOD_PYTHON ERROR > > ProcessId: 14842 > Interpreter: 'localhost' > > ServerName: 'localhost' > DocumentRoot: '/opt/lampp/htdocs' > > URI: '/test/mptest.py' > Location: None > Directory: '/opt/lampp/htdocs/' > Filename: '/opt/lampp/htdocs/test/mptest.py' > PathInfo: '' > > Phase: 'PythonHandler' > Handler: 'mptest' > > Traceback (most recent call last): > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 1537, in HandlerDispatch > default=default_handler, arg=req, silent=hlist.silent) > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 1202, in _process_target > module = import_module(module_name, path=path) > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 304, in import_module > return __import__(module_name, {}, {}, ['*']) > > ImportError: No module named mptest > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Here is what I've put in the httpd.config file: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > LoadModule python_module /opt/lampp/modules/mod_python.so > > <Directory /opt/lampp/htdocs> > AddHandler mod_python .py > PythonHandler mptest > PythonDebug On > </Directory> > > <Location /mpinfo> > SetHandler mod_python > PythonHandler mod_python.testhandler > </Location> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > I guess there must be any file named mptest but I can't find it ... > > Thank you for your time > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > >
|