Hi miahw, I had to add the TRAC site-packages to the PYTHONPATH environment variable, done via .../apache2/bin/envvars:
************************************* TRAC="/user/xxx/opt/trac-0.12.2" PATH="$TRAC/bin:$PATH" export PATH LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/user/xxx/opt/sqlite-3.5.8/lib" export LD_LIBRARY_PATH PYTHONPATH=":/user/xxx/opt/mod_python/lib64/python2.4/site-packages" PYTHONPATH="$PYTHONPATH:$TRAC/lib64/python2.4/site-packages" PYTHONPATH="$PYTHONPATH:$TRAC/lib/python2.4/site-packages" PYTHONPATH="$PYTHONPATH:/user/xxx/opt/pysqlite-2.3.5/lib64/python2.4/site-packages" export PYTHONPATH ************************************* Hope this helps, Berny -----Original Message----- From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com] On Behalf Of miahw Sent: Wednesday, July 20, 2011 11:05 AM To: Trac Users Subject: [Trac] No module named trac error in Hello Trac users, I posted this request some time ago on this mailing list and no one has got back to me. I'm still stuck at this stage and would really appreciate any help. Thanks in advance. Hello, I keep getting the following error messages in Apache: [Wed Jul 13 15:33:35 2011] [error] [client 139.222.121.213] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Wed Jul 13 15:33:35 2011] [error] [client 139.222.121.213] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/ python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug) [Wed Jul 13 15:33:35 2011] [error] [client 139.222.121.213] PythonHandler trac.web.modpython_frontend: File "/usr/lib64/ python2.4/site-packages/mod_python/apache.py", line 461, in import_module\n f, p, d = imp.find_module(parts[i], path) [Wed Jul 13 15:33:35 2011] [error] [client 139.222.121.213] PythonHandler trac.web.modpython_frontend: ImportError: No module named trac My Apache conf file contains: <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /data/trac PythonOption TracUriRoot /trac Order allow,deny Allow from all </Location> I have followed the instructions on: http://ruk.ca/content/importerror-no-module-named-trac but I still cannot get it to work. The path /usr/lib64/python2.4/site- packages/ doesn't list Trac egg, but the path the path /usr/lib/ python2.4/site-packages/ does. My system is a 64 bit RHEL5.5 Linux. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.