Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#6558 closed defect (wontfix)

TypeError: can't compare datetime.datetime to float

Reported by: danlipsitt@… Owned by: Christian Boos
Priority: normal Milestone:
Component: version control/browser Version: 0.11b1
Severity: major Keywords: plugins
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /browser, Trac issued an internal error.

I am using the bzr plugin, but I don't see evidence that it's implicated. I also get a similar error in the timeline view, but it doesn't give a traceback:

Repository checkins event provider (ChangesetModule) failed:
TypeError: can't compare datetime.datetime to float

Request parameters:

{'path': '/'}

System Information

Trac 0.11b1
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]
setuptools 0.6c7
SQLite 3.4.2
pysqlite 2.3.2
Genshi 0.4.4

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 398, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 195, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/versioncontrol/web_ui/browser.py", line 360, in process_request
    'dir': node.isdir and self._render_dir(req, repos, node, rev),
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/versioncontrol/web_ui/browser.py", line 419, in _render_dir
    timerange.insert(dt)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/versioncontrol/web_ui/browser.py", line 178, in insert
    self.oldest = min(self.oldest, datetime)
TypeError: can't compare datetime.datetime to float

Attachments (0)

Change History (2)

comment:1 by Emmanuel Blot, 17 years ago

Keywords: plugins added
Resolution: wontfix
Status: newclosed

It is likely that the bzr plugin relies on the old Trac interface that used to use float to represent time values.

Trac development version (and upcoming 0.11 release) has been using datetime objects for a while and cannot execute plugins based on old APIs.

Please report this issue to the wiki:BzrPlugin maintainer.

in reply to:  1 comment:2 by Dan Lipsitt <danlipsitt@…>, 17 years ago

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.