$ bin/harness
>>> from lp.bugs.externalbugtracker.bugzilla import BugzillaAPI
>>> ebt = BugzillaAPI("https://bugs.freedesktop.org/")
>>> ebt.getExternalBugTrackerToUse()
<lp.bugs.externalbugtracker.bugzilla.BugzillaAPI object at 0x7d0f6d0>
>>> ebt.initializeRemoteBugDB(["37700"])
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../lib/lp/services/database/isolation.py", line 65, in wrapper
return func(*args, **kwargs)
File ".../lib/lp/bugs/externalbugtracker/bugzilla.py", line 689, in initializeRemoteBugDB
'permissive': True,
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File ".../lib/lp/bugs/externalbugtracker/xmlrpc.py", line 117, in request
return self._parse_response(StringIO(response), None)
File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
p.feed(response)
File "/usr/lib/python2.6/xmlrpclib.py", line 601, in feed
self._parser.Parse(data, 0)
ExpatError: mismatched tag: line 90, column 4
I suspect that's an error page that can't be parsed as XML.
Trying with BugzillaAPI directly:
$ bin/harness externalbugtrac ker.bugzilla import BugzillaAPI /bugs.freedeskt op.org/") BugTrackerToUse () externalbugtrac ker.bugzilla. BugzillaAPI object at 0x7d0f6d0> emoteBugDB( ["37700" ]) lp/services/ database/ isolation. py", line 65, in wrapper lp/bugs/ externalbugtrac ker/bugzilla. py", line 689, in initializeRemot eBugDB python2. 6/xmlrpclib. py", line 1199, in __call__ send(self. __name, args) python2. 6/xmlrpclib. py", line 1489, in __request self.__ verbose lp/bugs/ externalbugtrac ker/xmlrpc. py", line 117, in request response( StringIO( response) , None) python2. 6/xmlrpclib. py", line 1387, in _parse_response response) python2. 6/xmlrpclib. py", line 601, in feed _parser. Parse(data, 0)
>>> from lp.bugs.
>>> ebt = BugzillaAPI("https:/
>>> ebt.getExternal
<lp.bugs.
>>> ebt.initializeR
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../lib/
return func(*args, **kwargs)
File ".../lib/
'permissive': True,
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File ".../lib/
return self._parse_
File "/usr/lib/
p.feed(
File "/usr/lib/
self.
ExpatError: mismatched tag: line 90, column 4
I suspect that's an error page that can't be parsed as XML.