Discussion:
[Agilo for Trac] Can't remove ticket type "bug"
Assaf Inger
2014-10-02 21:19:02 UTC
Permalink
Hi,

When I try to remove the ticket type "bug" I get the error below. Any idea
how should I delete this ticket type?

Thanks,
Assaf

Oops

*Trac detected an internal error:*

KeyError: 'bug'

This is probably a local installation issue.
Found a bug in Trac?

If you think this should work and you can reproduce the problem, you should
consider creating a bug report.

Before you do that, though, please first try *searching
<http://trac.edgewall.org/search?ticket=yes&noquickjump=1&q=KeyError%3A+%27bug%27> for
similar issues*, as it is quite likely that this problem has been reported
before. For questions about installation and configuration of Trac or its
plugins, please try the mailing list
<http://trac.edgewall.org/wiki/MailingList> instead of creating a ticket.

Otherwise, please a new bug report describing the problem and explain how
to reproduce it.
Python Traceback
Most recent call last:

File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 497, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/api/view.py", line 155, in process_request
return self._call_filters_and_handler(req, handler)
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/api/view.py", line 143, in _call_filters_and_handler
data = handler(req) or {}
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/web_ui.py", line 325, in do_get
backlog_table = renderer.get_backlog_table_html(req.href())
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 230, in get_backlog_table_html
for item in self.get_top_level_containers():
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 73, in get_top_level_containers
if self.ticket_is_container(item.ticket) and not self.ticket_has_parents(item.ticket):
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 62, in ticket_is_container
if len(self.configured_child_types_for_type(ticket_type)) != 0:
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 53, in configured_child_types_for_type
for possible_child in self.link_tree[ticket_type]:





System Information:

*Trac*

1.0.1

*Agilo*

1.3.13-PRO

*Genshi*

0.7 (without speedups)

*psycopg2*

2.5.4

*Python*

2.6.6 (r266:84292, Sep 4 2013, 07:46:00) [GCC 4.4.7 20120313 (Red Hat
4.4.7-3)]

*pytz*

2010h

*setuptools*

5.7

Enabled Plugins:

*binary-agilo <http://www.agilofortrac.com/>*

1.3.13-PRO

/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg

*PageAuthzPolicyEditor <ryan.j.ollos-***@public.gmane.org>*

0.12dev-r12560

/usr/lib/python2.6/site-packages/PageAuthzPolicyEditor-0.12dev_r12560-py2.6.egg

*TracAccountManager <http://trac-hacks.org/wiki/AccountManagerPlugin>*

0.5dev-r14078

/usr/lib/python2.6/site-packages/TracAccountManager-0.5dev_r14078-py2.6.egg

*TracHtGroupEditorPlugin <http://trac-hacks.org/wiki/HtGroupEditorPlugin>*

2.1

/usr/lib/python2.6/site-packages/TracHtGroupEditorPlugin-2.1-py2.6.egg
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Claudio Di Cosmo
2014-10-10 08:49:24 UTC
Permalink
Hi Assaf,

Unfortunately, seems that the ticket types managed by the sprint are not updated after you delete a ticket type. In order to remove this error you can:

- Go to the admin page (as TRAC_ADMIN user)
- Access the “Backlogs” section
- Select the "Sprint Backlog”
- Refresh the selected ticket types by pressing again on the ticket you want to show in this backlog

- Save the Sprint backlog

This will fix your problem.

Sorry for the inconvenience.

Cheers,

Claudio Di Cosmo
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

claudio.dicosmo-CKHYNj9aYvRx67MzidHQgQC/***@public.gmane.org
http://www.agilosoftware.com

Follow us on twitter: http://twitter.com/agiloforscrum, http://twitter.com/agilofortrac

Amtsgericht Charlottenburg: HRB 127146
CEO Marion Eickmann, Andrea Tomasini
On 4 October 2014 at 21:07:22, Assaf Inger (assafinger-***@public.gmane.org) wrote:

Hi,

When I try to remove the ticket type "bug" I get the error below. Any idea how should I delete this ticket type?

Thanks,
Assaf

Oops


Trac detected an internal error:
KeyError: 'bug'
This is probably a local installation issue.

Found a bug in Trac?

If you think this should work and you can reproduce the problem, you should consider creating a bug report.

Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the mailing list instead of creating a ticket.

Otherwise, please  a new bug report describing the problem and explain how to reproduce it.

Python Traceback

Most recent call last:

File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 497, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/api/view.py", line 155, in process_request
return self._call_filters_and_handler(req, handler)
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/api/view.py", line 143, in _call_filters_and_handler
data = handler(req) or {}
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/web_ui.py", line 325, in do_get
backlog_table = renderer.get_backlog_table_html(req.href())
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 230, in get_backlog_table_html
for item in self.get_top_level_containers():
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 73, in get_top_level_containers
if self.ticket_is_container(item.ticket) and not self.ticket_has_parents(item.ticket):
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 62, in ticket_is_container
if len(self.configured_child_types_for_type(ticket_type)) != 0:
File "/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg/agilo/scrum/backlog/backlog_renderer.py", line 53, in configured_child_types_for_type
for possible_child in self.link_tree[ticket_type]:




System Information:

Trac
1.0.1
Agilo
1.3.13-PRO
Genshi
0.7 (without speedups)
psycopg2
2.5.4
Python
2.6.6 (r266:84292, Sep 4 2013, 07:46:00) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
pytz
2010h
setuptools
5.7
Enabled Plugins:

binary-agilo
1.3.13-PRO
/usr/lib/python2.6/site-packages/binary_agilo-1.3.13_PRO-py2.6.egg
PageAuthzPolicyEditor
0.12dev-r12560
/usr/lib/python2.6/site-packages/PageAuthzPolicyEditor-0.12dev_r12560-py2.6.egg
TracAccountManager
0.5dev-r14078
/usr/lib/python2.6/site-packages/TracAccountManager-0.5dev_r14078-py2.6.egg
TracHtGroupEditorPlugin
2.1
/usr/lib/python2.6/site-packages/TracHtGroupEditorPlugin-2.1-py2.6.egg
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum
 
You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.
 
To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...