Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3329 closed enhancement (fixed)

TimingAndEstimationPlugin should work with python 2.3

Reported by: sylv1.fraisse@… Owned by: bobbysmith007
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@… 6 years ago.
Httpd error trace log

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by sylv1.fraisse@…

Httpd error trace log

comment:1 Changed 6 years ago by bobbysmith007

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

comment:2 Changed 6 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 6 years ago by bobbysmith007

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

comment:4 Changed 6 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 Changed 6 years ago by bobbysmith007

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

Have a good day,

Russ

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bobbysmith007. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.