Modify ↓
#6558 closed defect (wontfix)
TypeError: can't compare datetime.datetime to float
Reported by: | 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)
follow-up: 2 comment:1 by , 17 years ago
Keywords: | plugins added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
comment:2 by , 17 years ago
Opened a bug report here: http://bugs.launchpad.net/trac-bzr/+bug/178772
Note:
See TracTickets
for help on using tickets.
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.