That solution doesn't work for me. First it failed because the HTMLParser constructor doesn't take arguments, so it should be p = HTMLParser.HTMLParser(). But when I changed it to that I got the following error message:
Gwibber Dispatcher: ERROR <twitter:receive> Operation failed
Gwibber Dispatcher: DEBUG Traceback:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/dispatcher.py", line 75, in perform_operation
message_data = PROTOCOLS[account["protocol"]].Client(account)(opname, **args)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 146, in __call__
return getattr(self, opname)(**args)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 149, in receive
return self._get("statuses/home_timeline.json", count=count, since_id=since)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 137, in _get
if parse: return [getattr(self, "_%s" % parse)(m) for m in data]
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 80, in _message
m = self._common(data)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 66, in _common
m["text"] = unescape(data["text"])
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/twitter.py", line 52, in unescape
p.save_bgn()
AttributeError: HTMLParser instance has no attribute 'save_bgn'
It appears that HTMLParser.HTMLParser is not compatible with htmllib.HTMLParser. You say it works on your system, how is that possible? Did you make more changes to twitter.py?
@Foppe
That solution doesn't work for me. First it failed because the HTMLParser constructor doesn't take arguments, so it should be p = HTMLParser. HTMLParser( ). But when I changed it to that I got the following error message:
Gwibber Dispatcher: ERROR <twitter:receive> Operation failed python2. 6/dist- packages/ gwibber/ microblog/ dispatcher. py", line 75, in perform_operation account[ "protocol" ]].Client( account) (opname, **args) python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 146, in __call__ python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 149, in receive "statuses/ home_timeline. json", count=count, since_id=since) python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 137, in _get python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 80, in _message python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 66, in _common data["text" ]) python2. 6/dist- packages/ gwibber/ microblog/ twitter. py", line 52, in unescape
Gwibber Dispatcher: DEBUG Traceback:
Traceback (most recent call last):
File "/usr/lib/
message_data = PROTOCOLS[
File "/usr/lib/
return getattr(self, opname)(**args)
File "/usr/lib/
return self._get(
File "/usr/lib/
if parse: return [getattr(self, "_%s" % parse)(m) for m in data]
File "/usr/lib/
m = self._common(data)
File "/usr/lib/
m["text"] = unescape(
File "/usr/lib/
p.save_bgn()
AttributeError: HTMLParser instance has no attribute 'save_bgn'
It appears that HTMLParser. HTMLParser is not compatible with htmllib.HTMLParser. You say it works on your system, how is that possible? Did you make more changes to twitter.py?