#9338 closed defect (invalid)
No module named trac
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Hello
- OC Centos 5.4 32bit
- python2.4
- pysqlite-2.6.0-py2.4
- Genshi-0.6-py2.4
- Pygments-1.3.1-py2.4
- Babel-0.9.5-py2.4
At me a small problem
After installation Trac 0.11.7 all work normally errors are not present.
- I delete Trac 0.11.7.
- I start to establish with SVN Trac-0.12dev_r9673
- Installation has passed normally
- At start Trac In a broad gull writes error.log
[Tue May 11 15:04:35 2010] [error] [client 10.0.1.10] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Tue May 11 15:04:35 2010] [error] [client 10.0.1.10] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug) [Tue May 11 15:04:35 2010] [error] [client 10.0.1.10] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module\n f, p, d = imp.find_module(parts[i], path) [Tue May 11 15:04:35 2010] [error] [client 10.0.1.10] PythonHandler trac.web.modpython_frontend: ImportError: No module named trac
What a problem help to understand
If to put version Trac 0.11.7 That is on the way created a folder /usr/lib/python2.4/site-packages/Trac 0.11.7
If to put Trac-0.12dev_r9673 That is created a file /usr/lib/python2.4/site-packages/ Trac-0.12dev_r9673-py2.4.egg
And naturally all ceases to work
<br>cat /etc/httpd/conf.d/trac.conf <LocationMatch "/trac/login"> AuthType Basic AuthName "Projects" AuthUserFile /etc/httpd/trac.htpasswd Require valid-user </LocationMatch> <br><Location /> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/trac PythonOption TracUriRoot/ </Location>
Attachments (0)
Change History (4)
comment:1 by , 15 years ago
Description: | modified (diff) |
---|---|
Keywords: | No module named trac removed |
Milestone: | 0.12 |
Resolution: | → invalid |
Status: | new → closed |
comment:2 by , 14 years ago
This is a problem. After installing 0.12rc1, and attempting to use mod_python with the same component versions noted above, I get the error noted above in the apache logs:
[Fri Jun 11 09:29:58 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Fri Jun 11 09:30:00 2010] [error] [client 10.0.2.2] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Fri Jun 11 09:30:00 2010] [error] [client 10.0.2.2] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug) [Fri Jun 11 09:30:00 2010] [error] [client 10.0.2.2] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module\n f, p, d = imp.find_module(parts[i], path) [Fri Jun 11 09:30:00 2010] [error] [client 10.0.2.2] PythonHandler trac.web.modpython_frontend: ImportError: No module named trac
comment:3 by , 14 years ago
Sorry, but this is really just an installation issue, 0.12rc1 works fine for me with mod_python. You should ask for help on the Trac-users mailing list, as there you'll probably find someone which had the same issue and has already found the workaround.
comment:4 by , 14 years ago
Unzipping trac python .egg in site-packages would help. Described in http://ruk.ca/content/importerror-no-module-named-trac
I'm aware that there's probably a language barrier issue here, but I can't make anything out of this report, sorry.
This looks very much like an InstallationIssue, so I would suggest you join the MailingList and / or the IrcChannel and try to get help from other Trac users.