Howard Williams
Howard.Williams at marchFIRST.com
Tue Jun 20 16:00:26 EST 2000
Hi I've just installed the mod_python using all the latest source code for apache, python, and from the modpython.org site. I can't seem to run the tester: So I've seen some postings from last month about this with a similar "AttributeError: handler" title, but they didn't seem to apply. When I run "python test.py" (which I'm not convinced is supposed to be possible) from a command line, I get the following output to stderr: *********************************************************** Traceback (innermost last): File "test.py", line 1, in ? from mod_python import apache File "/usr/local/lib/python1.5/site-packages/mod_python/apache.py", line 18, in ? import _apache ImportError: No module named _apache *********************************************************** My directories are laid out as follows: /usr/local/lib/python1.5/site-packages/mod_python/apache.py /usr/local/lib/python1.5/site-packages/mod_python/apache.pyc /usr/local/lib/python1.5/site-packages/mod_python/cgihandler.py /usr/local/lib/python1.5/site-packages/mod_python/cgihandler.pyc /usr/local/lib/python1.5/site-packages/mod_python/httpdapi.py /usr/local/lib/python1.5/site-packages/mod_python/httpdapi.pyc /usr/local/lib/python1.5/site-packages/mod_python/zhandler.py /usr/local/lib/python1.5/site-packages/mod_python/zhandler.pyc I get this error: ********************************* ERROR mod_python: "PythonHandler test" Traceback (innermost last): File "/usr/local/lib/python1.5/site-packages/mod_python/apache.py", line 96, in Dispatch object = self.resolve_object(module, object_str) File "/usr/local/lib/python1.5/site-packages/mod_python/apache.py", line 42, in resolve_object obj = getattr(obj, obj_str) AttributeError: handler ************************************************ Here's the apache error_log: ************************************************ [Tue Jun 20 15:47:37 2000] [notice] Apache/1.3.12 (Unix) configured -- resuming normal operations [Tue Jun 20 15:47:46 2000] [error] PythonHandler test: Traceback (innermost last): [Tue Jun 20 15:47:46 2000] [error] PythonHandler test: File "/usr/local/lib/python1.5/site-packages/mod_python/apache.py", line 96, in Dispatch object = self.resolve_object(module, object_str) [Tue Jun 20 15:47:46 2000] [error] PythonHandler test: File "/usr/local/lib/python1.5/site-packages/mod_python/apache.py", line 42, in resolve_object obj = getattr(obj, obj_str) [Tue Jun 20 15:47:46 2000] [error] PythonHandler test: AttributeError: handler ************************************************ Thanks for any help you can provide !!!! :) HOWARD WILLIAMS marchFIRST 23422 Mill Creek Drive., Suite 100 Laguna Hills, CA 92653 ph: (949) 461-5480 fax: (949) 461-5669 howard.williams at marchFIRST.com www.marchFIRST.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20000620/0305da7e/attachment-0003.htm
|