bugnumbers -l results in AssertionError if I pass in a specific bug url

Bug #172932 reported by Leann Ogasawara
2
Affects Status Importance Assigned to Milestone
bughelper (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bughelper

I'm running bugnumbers from the bughelper bzr tree -r192. Doing the following results in an error:

ogasawara@emiko:~/bughelper$ ./bugnumbers -l https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/82368

Traceback (most recent call last):

  File "./bugnumbers", line 210, in <module>

    main()

  File "./bugnumbers", line 120, in main

    bl = BugList(cl.options.url)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/connector.py", line 96, in __call__

    return self.cls(baseurl, connection=self.connection, filter=self.__buglist_filter)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 149, in __init__

    self.add(self.baseurl)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 209, in add

    (__bugs,__url) = self.fetch(__url)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 196, in fetch

    __bugs = __bp.bugs

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 130, in get_bugs

    self.parse_bugs()

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 102, in parse_bugs

    supported by python-launchpad-bugs" %self.url

AssertionError: Parsing of this page (https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/82368) is not supported by python-launchpad-bugs

Also using a different url results in the same error:

ogasawara@emiko:~/bughelper$ ./bugnumbers -l https://bugs.launchpad.net/ubuntu/+bug/82368

Traceback (most recent call last):

  File "./bugnumbers", line 210, in <module>

    main()

  File "./bugnumbers", line 120, in main

    bl = BugList(cl.options.url)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/connector.py", line 96, in __call__

    return self.cls(baseurl, connection=self.connection, filter=self.__buglist_filter)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 149, in __init__

    self.add(self.baseurl)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 209, in add

    (__bugs,__url) = self.fetch(__url)

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 196, in fetch

    __bugs = __bp.bugs

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 130, in get_bugs

    self.parse_bugs()

  File "/usr/lib/python2.5/site-packages/launchpadbugs/html_buglist.py", line 102, in parse_bugs

    supported by python-launchpad-bugs" %self.url

AssertionError: Parsing of this page (https://bugs.launchpad.net/ubuntu/+bug/82368) is not supported by python-launchpad-bugs

Revision history for this message
Markus Korn (thekorn) wrote : Re: [Bug 172932] bugnumbers -l results in AssertionError if I pass in a specific bug url

Leann, thanks for using bughelper and friends,
This error is expected, bugnumbers is a tool to parse bug-lists like
https://bugs.edge.launchpad.net/ubuntu/+source/bughelper/ or personal
bug-lists like https://bugs.edge.launchpad.net/~leannogasawara but not
bugreports, if you want to get information on a bugreport you could use
"buginfo --bugnr 12345"

Markus

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Markus,

Thanks for the clarification. I tried to use buginfo --bugnr bug ran into an issue which I've reported at bug #173079. I'll go ahead and close this report. Thanks!

Changed in bughelper:
status: New → Invalid
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.