Hi, Is trac on your $PYTHONPATH? On the command line, try:
$ python (Which should take you to an interactive prompt) Type: >>> import trac What happens? The root folder of your trac installation needs to sit in one of the various 'site-packages' dirs on your system. Try: /usr/lib/python2.3/site-packages/ /usr/local/lib/python2.3/site-packages/ Hope this helps, Noah On 4/20/06, Jérôme Lebel <[EMAIL PROTECTED]> wrote: > Hi, > > I installed trac with darwinports. It looks it was installed > correctly. I configured apache2 with : > LoadModule dav_svn_module modules/mod_dav_svn.so > LoadModule python_module modules/mod_python.so > > Alias /trachtdocs/ "/opt/local/share/trac/htdocs/" > > <Location /trac> > SetHandler mod_python > #PythonHandler trac.ModPythonHandler > PythonHandler trac.web.modpython_frontend > PythonOption TracUriRoot "/trac" > PythonOption TracEnvParentDir "/Projects/trac" > </Location> > > <LocationMatch /trac/[[:alnum:]]+/login> > AuthType Basic > AuthName "Trac" > AuthUserFile /Projects/master-auth > Require valid-user > </LocationMatch> > > > but when I try to connect to it, I get : > [Thu Apr 20 06:07:24 2006] [error] [client 192.168.0.101] > PythonHandler trac.web.modpython_frontend: Traceback (most recent > call last): > [Thu Apr 20 06:07:24 2006] [error] [client 192.168.0.101] > PythonHandler trac.web.modpython_frontend: File "/opt/local/lib/ > python2.4/site-packages/mod_python/apache.py", line 287, in > HandlerDispatch\n log=debug) > [Thu Apr 20 06:07:24 2006] [error] [client 192.168.0.101] > PythonHandler trac.web.modpython_frontend: File "/opt/local/lib/ > python2.4/site-packages/mod_python/apache.py", line 461, in > import_module\n f, p, d = imp.find_module(parts[i], path) > [Thu Apr 20 06:07:24 2006] [error] [client 192.168.0.101] > PythonHandler trac.web.modpython_frontend: ImportError: No module > named trac > [Thu Apr 20 06:07:24 2006] [error] [client 192.168.0.101] File does > not exist: /opt/local/apache2/htdocs/favicon.ico > > > Any ideas what can be wrong ? > > Thank you, > _______________________________________________ > Trac mailing list > [email protected] > http://lists.edgewall.com/mailman/listinfo/trac > -- "Creativity can be a social contribution, but only in so far as society is free to use the results." - R. Stallman _______________________________________________ Trac mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac
