Ticket #7477 (closed defect: fixed)
Opened 4 years ago
Last modified 4 years ago
0.12dev-r7419 is not running on apache2 / python 2.4
| Reported by: | cerano | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12 |
| Component: | web frontend/mod_python | Version: | 0.12dev |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by cboos) (diff)
after installation, trac runs w/o probs under tracd but comes up with an error message on apache2:
[Mon Jul 28 23:00:38 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Mon Jul 28 23:00:38 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug ) [Mon Jul 28 23:00:38 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module\n module = im p.load_module(mname, f, p, d) [Mon Jul 28 23:00:38 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r7419-py2.4.egg/trac/web/__init__.py", line 14, in ?\ n options = apache.main_server.get_options() [Mon Jul 28 23:00:38 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: AttributeError: 'module' object has no attribute 'main_server' [Mon Jul 28 23:00:39 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): [Mon Jul 28 23:00:39 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug ) [Mon Jul 28 23:00:39 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module\n module = im p.load_module(mname, f, p, d) [Mon Jul 28 23:00:39 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/Trac-0.12dev_r7419-py2.4.egg/trac/web/__init__.py", line 14, in ?\ n options = apache.main_server.get_options() [Mon Jul 28 23:00:39 2008] [error] [client 192.168.0.13] PythonHandler trac.web.modpython_frontend: AttributeError: 'module' object has no attribute 'main_server'
Attachments
Change History
comment:1 Changed 4 years ago by cerano
comment:2 Changed 4 years ago by cboos
- Component changed from general to web frontend/mod_python
- Description modified (diff)
- Owner set to cmlenz
Please mention the mod_python version you're using. If not already using the latest stable (3.3.1), you should consider upgrading it (though I'm not entirely sure this works around the issue).
Alternatively, backout rev. [7413] and [7407] until the issue gets fixed:
$ cd trunk $ svn merge -c-7413 http://svn.edgewall.org/repos/trac/trunk $ svn merge -c-7407 http://svn.edgewall.org/repos/trac/trunk
comment:3 follow-up: ↓ 4 Changed 4 years ago by cerano
my mod_python is 3.2.1 (current debian stable package), so i tried the alternative solution and it works! :)
But: no localisation - only english
comment:4 in reply to: ↑ 3 Changed 4 years ago by cboos
- Owner changed from cmlenz to jonas
Ok, fine, so I guess we need some compatibility code with 3.2.1 (very quickly looking at the modpython docs, this hints to an API change: MODPYTHON:144).
(and I guess this one is for jonas rather than cmlenz, changing owner)
Replying to cerano:
But: no localisation - only english
off topic, but see 0.12/TracInstall and look for Babel related information.
comment:5 Changed 4 years ago by jonas
- Resolution set to fixed
- Status changed from new to closed
Fixed in r7420. Unfortunately we can't use any compatibility code since the 3.2.1 implementation is buggy. The PYTHON_EGG_CACHE PythonOption? requires mod_python 3.3 but everything else works as before.



additional info: i've got ver 0.11 installed prio to 0.12dev