Brian Ray
bray at sent.com
Fri Sep 17 17:06:12 EDT 2004
hi again, I am getting closer to getting my first time mod_python install working. The following code works: ... # mptest.py def say(req, what="NOTHING"): return "I am saying %s" % what ... So, now I am trying to install mpservlets-1.1.5. I do get a couple compile warnings, 'package init file '__init__.py' not found (or not a regular file)'. However, everything after install_lib compiles fine. When I copy the mpservlet tutorial into my webroot and set my httpd.conf to this: ... LoadModule python_module modules/mod_python.so <Directory /var/www/tutorial> SetHandler python-program PythonHandler mod_python.publisher PythonDebug on </Directory> ... and try to access the page http://localhost/tutorial/ I continually get: ... Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/mod_python/publisher.py", line 98, in handler path=[path]) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/mod_python/apache.py", line 454, in import_module f, p, d = imp.find_module(parts[i], path) ImportError: No module named index ... I also tried http://localhost/tutorial/index.mps. Any help, please? The first script still runs when placed in this directory. BTW, I did see an earlier post with the same error message, however the thread was resolved and the person was posting said they could take it from there: http://groups.google.com/groups?hl=en&lr=&ie=UTF -8&threadm=mailman.342.1083930063.25742.python- list%40python.org&rnum=1&prev=groups%3Fq%3Dmod_python%2520ImportError%25 3A%2520No%2520module%2520named%2520index%2520%2520%26hl%3Den%26lr%3D%26i e%3DUTF-8%26sa%3DN%26tab%3Dwg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2091 bytes Desc: not available Url : http://modpython.org/pipermail/mod_python/attachments/20040917/644517f6/attachment.bin
|