Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3329 closed enhancement (fixed)

TimingAndEstimationPlugin should work with python 2.3

Reported by: sylv1.fraisse@… Owned by: Russ Tyndall
Priority: highest Component: TimingAndEstimationPlugin
Severity: blocker Keywords:
Cc: sylv1.fraisse@… Trac Release: 0.11

Description

Because trac-0.11 is compatible with python 2.3, it seems good this plugin will also compatible with this version of python. I my personal case it quite impossible to upgrade the python version.

The httpd trace log is attached to this ticket.

My System Information

Trac 0.11
Python 2.3.4 (#1, Feb 15 2005, 19:42:48) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
setuptools 0.6c7
SQLite 3.3.6
pysqlite 1.1.7
Genshi 0.5
mod_python < 3.2
jQuery 1.2.3

Attachments (1)

log_error_python_2_3.txt (8.1 KB) - added by sylv1.fraisse@… 16 years ago.
Httpd error trace log

Download all attachments as: .zip

Change History (6)

Changed 16 years ago by sylv1.fraisse@…

Attachment: log_error_python_2_3.txt added

Httpd error trace log

comment:1 Changed 16 years ago by Russ Tyndall

(In [3960]) re #3329 removed the decorator that seemed to be breaking backward compatibility

comment:2 Changed 16 years ago by anonymous

It fixes the syntax error but does not work yet. Here is the new trace :

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/api.py", line 339, in send_error 'text/html')
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/chrome.py", line 690, in render_template stream |= self._filter_stream(req, method, filename, stream, data)
  File "build/bdist.linux-i686/egg/genshi/core.py", line 128, in __or__
  File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/chrome.py", line 789, in inner data)
  File "build/bdist.linux-i686/egg/timingandestimationplugin/tande_filters.py", line 77, in filter_stream
  File "build/bdist.linux-i686/egg/timingandestimationplugin/tande_filters.py", line 21, in __init__
NameError: global name 'set' is not defined

comment:3 Changed 16 years ago by Russ Tyndall

(In [3962]) re #3329 tried importing set to increase backwards compatibility

comment:4 Changed 16 years ago by anonymous

Resolution: fixed
Status: newclosed

It's work fine with this import. Sorry for my poor level in python and thank you.

comment:5 Changed 16 years ago by Russ Tyndall

No problem, it was a pleasure to meet your needs. Thank you for being so responsive!

Have a good day,

Russ

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.