You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2013/06/04 18:43:30 UTC
[Apache Bloodhound] #547: TracError on Timeline Widget in Ticket
view
#547: TracError on Timeline Widget in Ticket view
---------------------+--------------------
Reporter: tim | Owner: nobody
Type: defect | Status: new
Priority: major | Milestone:
Component: plugins | Version: 0.5.3
Keywords: |
---------------------+--------------------
Loading a ticket in the ticket view shows an error along the right that
says:
Error: Exception raised while rendering widget. Contact your administrator
for further details.
Widget name: Timeline
Exception type: TracError
Log entry ID: 9aad32c1-cd77-4c4e-a6eb-3f60c1ee6b5a
{{{
2013-06-04 16:09:50,213 Trac[loader] ERROR: Skipping
"bhsearch.query_parser = bhsearch.query_parser":
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954,
in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhsearch/query_parser.py", line 24, in <module>
from bhsearch.whoosh_backend import WhooshBackend
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhsearch/whoosh_backend.py", line 26, in <module>
from bhsearch.search_resources.ticket_search import TicketFields
ImportError: No module named search_resources.ticket_search
2013-06-04 16:09:50,214 Trac[loader] ERROR: Skipping
"bhsearch.search_resources.milestone_search =
bhsearch.search_resources.milestone_search":
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954,
in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
ImportError: No module named search_resources.milestone_search
2013-06-04 16:09:50,214 Trac[loader] ERROR: Skipping
"bhsearch.search_resources.ticket_search =
bhsearch.search_resources.ticket_search":
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954,
in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
ImportError: No module named search_resources.ticket_search
2013-06-04 16:09:50,214 Trac[loader] ERROR: Skipping
"bhsearch.search_resources.wiki_search =
bhsearch.search_resources.wiki_search":
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954,
in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
ImportError: No module named search_resources.wiki_search
2013-06-04 16:09:50,216 Trac[loader] ERROR: Skipping
"bhsearch.whoosh_backend = bhsearch.whoosh_backend":
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954,
in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhsearch/whoosh_backend.py", line 26, in <module>
from bhsearch.search_resources.ticket_search import TicketFields
ImportError: No module named search_resources.ticket_search
2013-06-04 16:09:51,090 Trac[web_ui] ERROR: Timeline event provider
failed:
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 194, in process_request
filters) or []:
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 281, in
get_timeline_events
event, filters)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 361, in filter_event
if t.id == context.resource.id:
AttributeError: 'long' object has no attribute 'id'
2013-06-04 16:09:51,091 Trac[web_ui] ERROR: - 9aad32c1-cd77-4c4e-a6eb-
3f60c1ee6b5a - Error rendering widget Timeline with options {'args':
{u'filters': u'ticket,ticket_details,changeset'}}
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/web_ui.py", line 244, in _render_widget
return wp.render_widget(name, ctx, options)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/util.py", line 132, in widget_name_checker
return f(self, name, *args, **kwargs)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 182, in
render_widget
data = module.process_request(fakereq)[1]
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 202, in process_request
[f[0] for f in available_filters])
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 402, in _provider_failure
other_events=other_events))))
TracError: <p class="message">Event provider
<tt>TimelineFilterAdapter</tt> failed for filters "Tickets opened and
closed": <b>AttributeError: 'long' object has no attribute
'id'</b></p><p>You may want to see the <a
href="/timeline?max=25&daysback=&changeset=on">other kinds of
events</a> from the Timeline or notify your Trac administrator about the
error (detailed information was written to the log).</p>
2013-06-04 16:09:51,209 Trac[web_ui] ERROR: Timeline event provider
failed:
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 194, in process_request
filters) or []:
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 281, in
get_timeline_events
event, filters)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 361, in filter_event
if t.id == context.resource.id:
AttributeError: 'long' object has no attribute 'id'
2013-06-04 16:09:51,210 Trac[web_ui] ERROR: - 24d648fa-31da-4c00-9f8b-
a4e4b57a3ec6 - Error rendering widget Timeline with options {'args':
{u'filters': u'ticket,ticket_details,changeset'}}
Traceback (most recent call last):
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/web_ui.py", line 244, in _render_widget
return wp.render_widget(name, ctx, options)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/util.py", line 132, in widget_name_checker
return f(self, name, *args, **kwargs)
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/bhdashboard/widgets/timeline.py", line 182, in
render_widget
data = module.process_request(fakereq)[1]
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 202, in process_request
[f[0] for f in available_filters])
File "/sites/apache-bloodhound-0.5.3/installer/bloodhound/lib/python2.7
/site-packages/trac/timeline/web_ui.py", line 402, in _provider_failure
other_events=other_events))))
TracError: <p class="message">Event provider
<tt>TimelineFilterAdapter</tt> failed for filters "Tickets opened and
closed": <b>AttributeError: 'long' object has no attribute
'id'</b></p><p>You may want to see the <a
href="/timeline?max=25&daysback=&changeset=on">other kinds of
events</a> from the Timeline or notify your Trac administrator about the
error (detailed information was written to the log).</p>
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Comment (by astaric):
Did you install bloodhound into a clean environment (i.e. new virtual
env)?
The part about bhsearch.query_parser feels like bhsearch used to be
installed but was deleted afterwards (while the hooks remained or
something like this). Installing in a fresh virtual env should solve this
part.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Comment (by rjollos):
The first part of the traceback appears to be unrelated to the !TracError
on timeline widget in ticket view. Components of the `bloodhound_search`
package can't be imported, but I don't have any idea of what that would
be, and the traceback doesn't leave many good hints as far as I see.
I haven't been able to reproduce after a great bit of trying, however I
think this will be fixed already in Bloodhound 0.6 because the ticket page
has been reworked and no longer uses the timeline widget.
This bit has been removed,
{{{#!text/html
<div py:if="bhdb and ticket.exists" id="activity" class="$cols_activity
hidden-phone">
<bh:widget urn="Timeline">
<bh:args>
<bh:arg name="filters">ticket,ticket_details,changeset</bh:arg>
</bh:args>
</bh:widget>
</div>
}}}
The issue could still exist in the timeline widget, so it would be nice to
sort that out. Could you give some more details about ticket history for
the cases that you see the error?
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: closed
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: fixed | Keywords:
----------------------+-----------------------
Changes (by astaric):
* status: accepted => closed
* resolution: => fixed
Comment:
As the problem no longer appears in trunk version and we have added unit
tests that should cover this scenario for the future, I am closing the
ticket. If the problem reappears, please reopen it.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:7>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Comment (by astaric):
While I could not duplicate the AttributeError: 'long' object has no
attribute 'id' in an actual deployment, I managed to get this error in a
unit test. It was fixed in r1496958.
Can you try replacing your timeline.py (/sites/apache-
bloodhound-0.5.3/installer/bloodhound/lib/python2.7/site-
packages/bhdashboard/widgets/timeline.py)
with the one from
https://svn.apache.org/repos/asf/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/timeline.py
As the widget was not changed a lot from 0.5.3, this could solve your
problem.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:5>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Changes (by rjollos):
* owner: nobody => rjollos
* status: new => accepted
* milestone: => Release 6
Comment:
Thanks for the report. I will investigate.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Comment (by tim):
It's in a fresh install of python 2.7.3 using virtualenv.
I tried using the SVN copy in place of the existing one and the issue
seems to have been resolved.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in Ticket view
Posted by Tim Tisdall <ti...@gmail.com>.
I got one email when I created the ticket and one when I added that last
comment, but no emails in between. I assumed that maybe it was just down
in between or had since been fixed so I removed my comment.
-Tim
On Thu, Jun 13, 2013 at 6:27 PM, Ryan Ollos <ry...@wandisco.com> wrote:
> On Thu, Jun 13, 2013 at 11:57 AM, Apache Bloodhound <
> dev@bloodhound.apache.org> wrote:
>
> > #547: TracError on Timeline Widget in Ticket view
> > ----------------------+-----------------------
> > Reporter: tim | Owner: rjollos
> > Type: defect | Status: accepted
> > Priority: major | Milestone: Release 6
> > Component: plugins | Version: 0.5.3
> > Resolution: | Keywords:
> > ----------------------+-----------------------
> >
> > Comment (by tim):
> >
> > Is there any way to get email notifications on here? I have no way of
> > knowing when this ticket is updated.
> >
>
> Tim, I see that you edited this comment out (after Gary pointed that out to
> me), so is it safe to assume that you are receiving the email
> notifications?
>
> - Ryan
>
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in Ticket view
Posted by Ryan Ollos <ry...@wandisco.com>.
On Thu, Jun 13, 2013 at 11:57 AM, Apache Bloodhound <
dev@bloodhound.apache.org> wrote:
> #547: TracError on Timeline Widget in Ticket view
> ----------------------+-----------------------
> Reporter: tim | Owner: rjollos
> Type: defect | Status: accepted
> Priority: major | Milestone: Release 6
> Component: plugins | Version: 0.5.3
> Resolution: | Keywords:
> ----------------------+-----------------------
>
> Comment (by tim):
>
> Is there any way to get email notifications on here? I have no way of
> knowing when this ticket is updated.
>
Tim, I see that you edited this comment out (after Gary pointed that out to
me), so is it safe to assume that you are receiving the email notifications?
- Ryan
Re: [Apache Bloodhound] #547: TracError on Timeline Widget in
Ticket view
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#547: TracError on Timeline Widget in Ticket view
----------------------+-----------------------
Reporter: tim | Owner: rjollos
Type: defect | Status: accepted
Priority: major | Milestone: Release 6
Component: plugins | Version: 0.5.3
Resolution: | Keywords:
----------------------+-----------------------
Comment (by tim):
Is there any way to get email notifications on here? I have no way of
knowing when this ticket is updated.
I see the same error on every ticket. The installation is very new so
it's pretty much a stock version of 0.5.3 .
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/547#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker