Hi, I'm totally confused by the install. I believe I followed everything corrrectly. I've tested mod_python to make sure that it's working correctly. (www.modpython.org) The issue I'm having is that I cannot make NAV the Document Root of the machine. So, things seem to be getting confused. Mod_python error: "PythonHeaderParserHandler nav.web" Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch log=debug) File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module f, p, d = imp.find_module(parts[i], path) ImportError: No module named nav My httpd.conf file looks like: <Directory /usr/local/wwww/nav/apache/webroot> Options Indexes FollowSymLinks ExecCGI AllowOverride FileInfo Order allow,deny Allow from all </Directory> Alias /nav/ "/usr/local/www/nav/apache/webroot/" The standard .htaccess file is in place in "webroot" What am I missing? Thank you for any help! p.
From ppathiakis at eagleaccess.com Fri Sep 29 12:26:39 2006 From: ppathiakis at eagleaccess.com (Paul J. Pathiakis) Date: Fri Sep 29 17:26:42 2006 Subject: [Nav-users] NAV mod_python.publisher errors Message-ID: <EAED38651CF6BF46A8D2BCD9D4EEAA6D76C91F@BIGMAIL.eagleinvsys.com>
i, would someone please respond to this? I've posted twice to this list and no one responds. I'm sorry if this is such a low level question but I'd really like to get it working. I have index.py. It seems to be found by the browser and an attempt is made by python to render it and display it. However, I get the following: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 213, in handler published = publish_object(req, object) File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 412, in publish_object return publish_object(req,util.apply_fs_data(object, req.form, req=req)) File "/usr/local/lib/python2.4/site-packages/mod_python/util.py", line 439, in apply_fs_data return object(**args) File "/usr/local/www/data/nav/index.py", line 44, in index if req.session.has_key('user'): AttributeError: 'mp_request' object has no attribute 'session' Now, I can see on line 44 in index.py there is the exact line right under the last part of the error. Why is the AttributeError being generated? Why is mp_request (mod_python reqest object) missing the attribute session? What is missing from httpd.conf file or other files that is not allowing this to continue? Thank you, Paul Pathiakis