Modify

Opened 15 years ago

Closed 15 years ago

#4852 closed defect (invalid)

TracHours creates an error: ValueError: invalid literal for int() with base 10: ''

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I got this error on trying to access the hours page for a certain ticket, say '1' in th output below.

It is a bug similar to this one, I would guess: http://trac.edgewall.org/ticket/8086

NOTE: we are running trac 0.11.3 and the latest version of the plugin.

I hope you can help us out.

How to Reproduce

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

(please provide additional details here)

User Agent was: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl-NL; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8

System Information

Trac 0.11.3
Python 2.5.4 (r254:67916, Mar 9 2009, 11:55:23)
[GCC 4.0.1 (Apple Inc. build 5490)]
setuptools 0.6c9
SQLite 3.6.11
pysqlite 2.3.2
Genshi 0.5
mod_python 3.3.1
Pygments 1.0
Subversion 1.6.0 (r36650)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 435, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 227, in dispatch
    data, content_type)
  File "/opt/local/lib/python2.5/site-packages/trac/web/chrome.py", line 742, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 61, in encode
    for chunk in iterator:
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/opt/local/lib/python2.5/site-packages/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/trac/web/chrome.py", line 808, in _strip_accesskeys
    for kind, data, pos in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/trac/web/chrome.py", line 797, in _generate
    for kind, data, pos in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/filters/transform.py", line 686, in _unmark
    for mark, event in stream:
  File "build/bdist.macosx-10.5-i386/egg/timingandestimationplugin/tande_filters.py", line 60, in __call__
    for mark, event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/filters/transform.py", line 713, in __call__
    for mark, event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/filters/transform.py", line 682, in _mark
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/core.py", line 283, in _ensure
    for event in stream:
  File "/opt/local/lib/python2.5/site-packages/genshi/filters/transform.py", line 686, in _unmark
    for mark, event in stream:
  File "build/bdist.macosx-10.5-i386/egg/timingandestimationplugin/tande_filters.py", line 64, in __call__
    for e in flush(queue):
  File "build/bdist.macosx-10.5-i386/egg/timingandestimationplugin/tande_filters.py", line 55, in flush
    for event in self.filter(queue):
  File "build/bdist.macosx-10.5-i386/egg/timingandestimationplugin/tande_filters.py", line 29, in __call__
    id = int(report_url.split('/')[-1])
ValueError: invalid literal for int() with base 10: ''

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Jeff Hammel

Component: TracHoursPluginTimingAndEstimationPlugin
Owner: changed from Jeff Hammel to Russ Tyndall

the traceback you pasted is for the TimingAndEstimationPlugin ; i've changed the component to note this (you should probably reassign appropriately, as I don't maintain TimingAndEstimationPlugin). If you are trying to use both plugins together...don't. They are not compatible.

comment:2 Changed 15 years ago by anonymous

Resolution: invalid
Status: newclosed

It was a compatibility issue between TimingAndEstimationPlugin and TracHoursPlugin.

Thank you for pointing this out.

Modify Ticket

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