AttributeError: 'NoneType' object has no attribute 'toordinal'

148 views
Skip to first unread message

mindo

unread,
Mar 24, 2010, 7:45:02 AM3/24/10
to Agilo for Scrum, sup...@eufinity.com
I defined a new Sprint, when i choose the Sprint and press View i get
his error.
I am using the lastest version of Agilo with all the pro features
disabled.
Any ideas?

==== How to Reproduce ====

While doing a GET operation on `/backlog/Sprint Backlog`, Trac issued
an internal error.

''(please provide additional details here)''


Request parameters:
{{{
{'bscope': u'Sprint 1',
'name': u'Sprint Backlog',
'scope': None,
'view': u'View'}
}}}


==== System Information ====

|| '''Trac''' || `0.11.7` ||
|| '''Python''' || `2.5.2 (r252:60911, Jan 20 2010, 23:30:56) ` [[br]]
`[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]` ||
|| '''setuptools''' || `0.6c11` ||
|| '''SQLite''' || `3.4.2` ||
|| '''pysqlite''' || `2.4.0` ||
|| '''Genshi''' || `0.5.1` ||
|| '''mod_python''' || `3.3.1` ||
|| '''Agilo''' || `1.2.1-PRO` ||
|| '''Subversion''' || `1.4.6 (r28521)` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/
web/main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/
web/main.py", line 206, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/api/view.py", line 155, in process_request
return self._call_filters_and_handler(req, handler)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/api/view.py", line 143, in _call_filters_and_handler
data = handler(req) or {}
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/scrum/backlog/new_webui.py", line 166, in do_get
chart = self._get_and_prepare_burndown_chart_if_neccessary(req,
backlog)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/scrum/backlog/new_webui.py", line 148, in
_get_and_prepare_burndown_chart_if_neccessary
widget = get_widget(ChartType.BURNDOWN, sprint_name=sprint.name)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/charts/chart_generator.py", line 135, in
get_chartwidget
new_widget = self._get_widget(name, kwargs, use_cache)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/charts/chart_generator.py", line 110, in _get_widget
new_widget = generator.generate_widget(name, **kwargs)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/scrum/backlog/charts.py", line 62, in generate_widget
burndown_widget.populate_with_sprint_data(sprint_name)
File "/usr/lib/python2.5/site-packages/binary_agilo-1.2.1_PRO-
py2.5.egg/agilo/scrum/backlog/charts.py", line 292, in
populate_with_sprint_data
start_sprint = sprint.start.toordinal()
AttributeError: 'NoneType' object has no attribute 'toordinal'

}}}

Felix Schwarz

unread,
Mar 25, 2010, 4:06:37 AM3/25/10
to ag...@googlegroups.com, sup...@eufinity.com
Am 24.03.2010 12:45, schrieb mindo:
> I defined a new Sprint, when i choose the Sprint and press View i get
> his error.

This could be a symptom of a bug I fixed recently in our trunk version.

Please go to Admin - Agilo - Sprints and check that you have a start and
an end date set for this sprint (if it shows you the current time for
start/end, please set it to something sensible).

fs

mindo

unread,
Mar 25, 2010, 7:30:25 AM3/25/10
to Agilo for Scrum
Hi,

Thanks for your fast reply.
This solved the problem (the start and end date was exactly the same).

Cheers

Armindo

Reply all
Reply to author
Forward
0 new messages