Gwibber Dispatcher: ERROR <facebook:images> 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/facebook.py", line 198, in __call__
return getattr(self, opname)(**args)
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/facebook.py", line 233, in images
return [self._image(post, profiles) for post in data]
File "/usr/lib/python2.6/dist-packages/gwibber/microblog/facebook.py", line 165, in _image
user = profiles[data["owner"]]
KeyError: u'100000497******'
Changing line 165 in /usr/lib/python2.6/dist-packages/gwibber/microblog/facebook.py from:
user = profiles[data["owner"]]
to
user = profiles[int(data["owner"])]
solved the problem.
The problem seems to be that the type of data["owner"] of this user is <type 'unicode'>
(the reason seems to be that his user name contains unicode letters)
- all other user's data["owner"] type is <type 'int'>
by manually converting it to an integer the problem seems to be fixed.
(Although the real bug seems to be somewhere else, as i think data["owner"] simply shouldn't have been unicode)
I think there are different bugs mixed up in this thread ... nevertheless:
I was able to solve the following bug:
( Pierre Tocquin's error message is pretty much the same I think )
- I masked the UserID in the last line for privacy reasons -
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
Gwibber Dispatcher: ERROR <facebook:images> 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/ facebook. py", line 198, in __call__ python2. 6/dist- packages/ gwibber/ microblog/ facebook. py", line 233, in images python2. 6/dist- packages/ gwibber/ microblog/ facebook. py", line 165, in _image data["owner" ]]
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._image(post, profiles) for post in data]
File "/usr/lib/
user = profiles[
KeyError: u'100000497******'
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
Changing line 165 in /usr/lib/ python2. 6/dist- packages/ gwibber/ microblog/ facebook. py from:
user = profiles[ data["owner" ]] int(data[ "owner" ])]
to
user = profiles[
solved the problem.
The problem seems to be that the type of data["owner"] of this user is <type 'unicode'>
(the reason seems to be that his user name contains unicode letters)
- all other user's data["owner"] type is <type 'int'>
by manually converting it to an integer the problem seems to be fixed.
(Although the real bug seems to be somewhere else, as i think data["owner"] simply shouldn't have been unicode)