Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7477 closed defect (fixed)

0.12dev-r7419 is not running on apache2 / python 2.4

Reported by: cerano Owned by: Jonas Borgström
Priority: normal Milestone: 0.12
Component: web frontend/mod_python Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

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 (0)

Change History (5)

comment:1 by cerano, 16 years ago

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

comment:2 by Christian Boos, 16 years ago

Component: generalweb frontend/mod_python
Description: modified (diff)
Owner: set to Christopher Lenz

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 by cerano, 16 years ago

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

in reply to:  3 comment:4 by Christian Boos, 16 years ago

Owner: changed from Christopher Lenz to Jonas Borgström

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 by Jonas Borgström, 16 years ago

Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.