Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3380 closed defect (fixed)

Python croaks on datetime.strptime in python 2.4

Reported by: dan@… Owned by: Prentice Wongvibulsin
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I get a python error when trying to change any of the parameters of the chart. It looks like you are trying to do an strptime on datetime which doesn't have it in Python 2.4. The time object has both strptime and strftime, but datetime only has strftime. You didn't indicate that your plugin required 2.5. It would be really nice if it didn't.

Here's the stacktrace: File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg/trac/web/main.py", line 197, in dispatch

resp = chosen_handler.process_request(req)

File "build/bdist.linux-i686/egg/ticketstats/ticketstats.py", line 136, in process_request

System Info: Trac: 0.11 Python: 2.4.3 (#1, May 24 2008, 13:47:28) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] setuptools: 0.6c8 SQLite: 3.3.6 pysqlite: 1.1.7 Genshi: 0.5.1 Pygments: 0.9 Subversion: 1.4.6 (r28521) jQuery: 1.2.3

Attachments (0)

Change History (5)

comment:1 Changed 16 years ago by Prentice Wongvibulsin

Owner: changed from Prentice Wongvibulsin to anonymous
Status: newassigned

Thank you for this detailed description. I will look into making this plugin compatible with Python 2.4.

comment:2 Changed 16 years ago by Prentice Wongvibulsin

Owner: changed from anonymous to Prentice Wongvibulsin
Status: assignednew

comment:3 Changed 16 years ago by Prentice Wongvibulsin

Status: newassigned

comment:4 Changed 16 years ago by Prentice Wongvibulsin

Resolution: fixed
Status: assignedclosed

Fixed in [4014]. I do not have a Python 2.4 environment to test this on so please let me know if there are any more compatibility issues. Thanks.

comment:5 Changed 16 years ago by anonymous

Perfect! Thanks a bunch

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Prentice Wongvibulsin.
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.