Discussion:
[Agilo for Trac] Agilo/Trac Error: "AttributeError: 'NoneType' object has no attribute 'get'"
Elaborate Ruse
2012-12-17 21:35:21 UTC
Permalink
The following issue occurred when viewing a ticket. One time, navigating to
the ticket through the ticket list worked successfully but then refreshing
the page caused the error. Error details:


OopsÂ…

Trac detected an internal error:
AttributeError: 'NoneType' object has no attribute 'get'
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.

Note that the binary-agilo plugin seems to be involved. Please report this
issue to the plugin maintainer.

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
"/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/templates/agilo_ticket_view.html",
line 75, in <Expression '?'>
<py:with vars="fields = [f for f in ticket.get_calculated_fields() if not
f.skip]">
File
"/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/model.py",
line 474, in get_calculated_fields
field_dict = self.get_calculated_field(name)
File
"/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/model.py",
line 486, in get_calculated_field
Key.LABEL: self.get_label(name),
File
"/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg/agilo/ticket/model.py",
line 432, in get_label
label = AgiloConfig(self.env).LABELS.get(name, None)


System Information:

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML,
like Gecko) Chrome/23.0.1271.97 Safari/537.11

Trac 1.0
Agilo 1.3.9-PRO
Babel 0.9.6
Docutils 0.8.1
Genshi 0.6 (with speedups)
mod_python 3.3.1
Pygments 1.4
pysqlite 2.6.0
Python 2.7.3 (default, Aug 1 2012, 05:27:35) [GCC 4.6.3]
pytz 2011k
setuptools 0.6
SQLite 3.7.9
Subversion 1.6.17 (r1128011)
jQuery 1.7.2
Enabled Plugins:

AdvancedTicketWorkflowPlugin 0.11dev
/usr/local/lib/python2.7/dist-packages/AdvancedTicketWorkflowPlugin-0.11dev-py2.7.egg
binary-agilo 1.3.9-PRO
/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.9_PRO-py2.7.egg
TracAccountManager 0.4
/usr/local/lib/python2.7/dist-packages/TracAccountManager-0.4-py2.7.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
Stefano Rago
2012-12-20 08:27:27 UTC
Permalink
Hi,
Was this issue experienced when all of the other third party plugins were disabled? Can you please try excluding also AdvancedTicketWorkflow?
What are the steps that can help reproduce the problem?

Cheers

Stefano Rago
--
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
Elaborate Ruse
2013-01-03 23:32:40 UTC
Permalink
Hi Stefano,
It turns out that we had some kind of SQLite database corruption,
possibly resulting from the upgrade. We exported the records to a file,
fixed a few ids, and imported the records to a new SQLite database. That
seems to have fixed the problem. Thanks for your response.
Post by Elaborate Ruse
Hi,
The following issue occurred when viewing a ticket. One time, navigating
to the ticket through the ticket list worked successfully but then
Was this issue experienced when all of the other third party plugins were
disabled? Can you please try excluding also AdvancedTicketWorkflow?
What are the steps that can help reproduce the problem?
Cheers
Stefano Rago
--
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
Loading...