Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#11348 closed defect (cantfix)

TypeError: unsupported type for timedelta microseconds component: unicode

Reported by: vinay.mohan.dass Owned by:
Priority: normal Milestone:
Component: general Version: 0.12.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'USER': u'vinay.mohan.dass', 'asc': u'1', 'format': u'csv', 'id': u'6'}

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36

System Information

Trac 0.12.3
Trac 0.12.3
Agilo 0.9.6.2
Babel 0.9.5
Docutils 0.7
FullBlog 0.1.1-r9430
Genshi 0.6
GIT 1.8.4
mod_wsgi 2.5 (WSGIProcessGroup trac_wsgi_05 WSGIApplicationGroup %{GLOBAL})
Pygments 1.4dev-20110115
pysqlite 2.4.1
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
pytz 2008c
pytz 2008c
RPC 1.1.2
setuptools 0.6c12
setuptools 0.6c12
SQLite 3.7.3
Subversion 1.8.3 (r1516576)
jQuery 1.4.4

Enabled Plugins

agilo 0.9.6.2
backlinks N/A
backlinks-menu N/A
customroadmap.webadminui N/A
TicketImport 0.8
TracAnnouncer 0.12.1.dev
TracCustomRoadmap 0.4
TracDiscussion 0.8-r9877
TracFullBlogPlugin 0.1.1-r9430
TracGit 0.12.0.5dev
TracMarkdownMacro 0.11.1
tracrpc.changeset N/A
TracTags 0.6
TracTocMacro 11.0.0.3
TracWysiwyg 0.12.0.3-r9676
TracXMLRPC 1.1.2

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/web/main.py", line 522, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/ticket/report.py", line 118, in process_request
    template, data, content_type = self._render_view(req, id)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/ticket/report.py", line 561, in _render_view
    filename=filename)
  File "/usr/local/lib/python2.5/site-packages/timingandestimationplugin-1.0.8b-py2.5.egg/timingandestimationplugin/reports_filter.py", line 192, in _send_csv
    unwrapped_send_csv(self, req, cols, rows, sep, mimetype, filename)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/ticket/report.py", line 759, in _send_csv
    if cols[i] not in self._html_cols])
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/ticket/report.py", line 735, in iso_time
    return format_time(from_utimestamp(t), 'iso8601')
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/util/datefmt.py", line 84, in from_utimestamp
    return _epoc + timedelta(microseconds=ts or 0)
TypeError: unsupported type for timedelta microseconds component: unicode

Attachments (0)

Change History (3)

comment:1 by anonymous, 11 years ago

When I tried to take download a CSV file for tickets, I encountered this problem

comment:2 by Ryan J Ollos, 11 years ago

th:TimingAndEstimationPlugin replaces the _send_csv function. Try removing the TimingAndEstimationPlugin egg: /usr/local/lib/python2.5/site-packages/timingandestimationplugin-1.0.8b-py2.5.egg.

comment:3 by Ryan J Ollos, 11 years ago

Resolution: cantfix
Status: newclosed

Modify Ticket

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