Opened 13 years ago

Last modified 12 years ago

#8803 closed defect

TracDiscussion no longer works with Python2.4 — at Version 4

Reported by: tgdrozda@… Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords: discussion, python2.4, 0.11, Trac 12.2
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

I would like to enable Discussion plugin 0.11 (from svn) for Trac 12.2 on my enterprise RHEL 5.4 system running python2.4. However, it appears that several lines of python 2.5 code (if oneliners for example) break python 2.4 compatibility. I noticed that there was a python2.4 patch few revisions back, so I tried to check out SVN r9590, apply the patch, and install the plugin. This did not work and Trac kept issuing a WARNING in the log:

Component <tracdiscussion.init.DiscussionInit object at 0x2ade4de3d7d0> requires environment upgrade. Running "trac-admin ...  upgrade" did not solve the issue, even though permissions were set correctly. I am currently stuck.

Does anyone maintain a more current python2.4 patch?

It is a shame that this valuable plugin does not maintain compatibility with widely used (especially on older and enterprise systems) python2.4 for reason no other than to save a few lines of code.

Change History (4)

comment:1 Changed 13 years ago by tgdrozda@…

Component: SELECT A HACKDiscussionPlugin
Owner: changed from anonymous to Radek Bartoň

Clarification: "I tried to check out SVN r9590, apply the patch, and install the plugin. This did not work." Reverting SVN to r9590 of worked and applying the patch and building with python2.4 also worked. However, when loading this build in Trac 12.2 I got the Trac WARNING in the log: Component <tracdiscussion.init.DiscussionInit? object at 0x2ade4de3d7d0> requires environment upgrade. Running "trac-admin ... upgrade" did not solve the issue. This command would perform the upgrade unsucessfully and I would get the "perform upgrade" page on the Trac website.

comment:2 Changed 13 years ago by Radek Bartoň

Status: newassigned

Thank you for your interest in the plugin. I'd take a look at this issue but currently I'm pretty occupied. Furthermore, finishing TagsPlugin support and fixing other bugs is more important for me. I can't promise you when I'll get to this issue.

comment:3 Changed 13 years ago by tgdrozda@…

Thanks Blackhex, Just curious ... are you aware of any technical reasons to utilize python2.5 constructs in your plugin. If not, I might give writing a patch a shot.

comment:4 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

I sympathize with RHEL users that it still runs Python 2.4, but note that Trac 0.13 will only support Python 2.5 and later, so we are moving to a stage that will force RHEL users to upgrade or install Python 2.5 themselves.

Note: See TracTickets for help on using tickets.