Modify ↓
#3075 closed defect (invalid)
Trac 0.9.5 not functioning with mod_python
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | web frontend/mod_python | Version: | 0.9.5 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When I try to run trac 0.9.5 inside apache with mod_python 3.2.8 I get this in error log:
[Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispa tch\n result = object(req) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/web/modpython_frontend.py" , line 199, in handler\n env = get_environment(mpr, project_opts) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/web/main.py", line 335, in get_environment\n return _open_environment(env_path, threaded) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/web/main.py", line 51, in _open_environment\n env_cache[env_path] = open_environment(env_path) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 375, in open _environment\n if env.needs_upgrade(): [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 281, in need s_upgrade\n if participant.environment_needs_upgrade(db): [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 334, in envi ronment_needs_upgrade\n dbver = self.env.get_version(db) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/export/software/trac/lib/python2.4/site-packages/trac/env.py", line 204, in get_ version\n cursor.execute("SELECT value FROM system WHERE name='database_version'") [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute\n self. rs = self.con.db.execute(SQL) [Sat Apr 22 23:49:39 2006] [error] [client 85.10.4.150] PythonHandler trac.web.modpython_frontend: DatabaseError: unsupported file format
In apache config this section is for trac (inside virtual host):
<Location /> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /xxx/projects/yyy/ PythonOption TracUriRoot / </Location>
but when I run same project with tracd it's working fine.
Attachments (0)
Change History (2)
comment:1 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
See also:
- http://www.modpython.org/pipermail/mod_python/2006-January/020062.html
- and of course, read PySqlite#Troubleshooting, if you haven't already done so
Note:
See TracTickets
for help on using tickets.
Support issues should be addressed to the MailingList instead of creating a ticket. However these items from the list archives may help: