dapper error with Wrong XPath-Expr in Subscribers.parse() '__xml'

Bug #220679 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
Bug Helper
Invalid
Undecided
Unassigned
python-launchpad-bugs
Fix Released
Medium
Markus Korn

Bug Description

When executing the following query on Dapper, python 2.4.3:

bugnumbers --parsemode=html --ns ">5" -p xorg

I receive this error message:

Traceback (most recent call last):
  File "./bugnumbers", line 324, in ?
    main()
  File "./bugnumbers", line 257, in main
    bl = BugList(cl.options.url)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/connector.py", line 111, in __call__
    filter=self.__buglist_filter, all_tasks=self.__all_tasks)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/html_buglist.py", line 123, in __init__
    all_tasks, start_bugs, BugPage)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/buglistbase.py", line 85, in __init__
    self._add(self.baseurl)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/buglistbase.py", line 171, in _add
    self.__filter.filter(b)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/basebuglistfilter.py", line 166, in filter
    r = set(_iter_bugs())
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/basebuglistfilter.py", line 162, in _iter_bugs
    yield f(b)
  File "./bugnumbers", line 42, in _no_by_attribute
    a = getattr(bug, attribute)
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/lphelper.py", line 261, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/html_bug.py", line 87, in func
    x.parse()
  File "/home/brian/source_trees/bughelper/main/launchpadbugs/html_bug.py", line 922, in parse
    assert self.__xml, "Wrong XPath-Expr in Subscribers.parse() '__xml' (%s)" %(DEBUG_URL or "unknown")
AssertionError: Wrong XPath-Expr in Subscribers.parse() '__xml' (https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/155685)

This is negatively affecting some reports that I run. I am using bughelper revno 210 and python-launchpad-bugs revno 88. The same query does not fail on Hardy.

Revision history for this message
Markus Korn (thekorn) wrote :

I can confirm this bug, it is Bug 137574 again. dapper's libxml2 stops parsing this bugreport silently.
I will try to find a workaround tomorrow morning.

Markus

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Markus Korn (thekorn) wrote :

This patch against py-lp-bugs rev 88 should fix this error, it's not optimal but I fear we can not do anything else as it's libxml2 which is actually broken in dapper.

Please review & test this.

Markus

Revision history for this message
Brian Murray (brian-murray) wrote :

This resolved the issue with that bug on Dapper and could be merged with main.

Changed in bughelper:
status: New → Invalid
Changed in python-launchpad-bugs:
status: Confirmed → Triaged
Revision history for this message
Markus Korn (thekorn) wrote :

------------------------------------------------------------
revno: 93
committer: Markus Korn <email address hidden>
branch nick: main
timestamp: Fri 2008-05-09 09:07:59 +0200
message:
  * launchpadbugs/lphelper.py: fixed html-parser for Dapper again,
    workaround for broken libxml2 (LP: #220679)
------------------------------------------------------------

Changed in python-launchpad-bugs:
status: Triaged → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

This bug is fixed in the current main branch of python-launchpad-bugs.

Changed in python-launchpad-bugs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.