X

NotImplementedError in cagou

On macos, with dev version of the sat environment, if one is posting in cagou when primitivus is already running gives:

xma not found in jabberfr@chat.jabberfr.org, ignoring new chat state
Traceback (most recent call last):
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/utils.py", line 88, in _ensure_obj
mod = __import__(module, fromlist='.')
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/platforms/macosx/notification.py", line 2, in <module>
from pyobjus import autoclass, protocol, objc_str, ObjcBOOL
ImportError: No module named pyobjus
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/connection.py", line 604, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_chat.py", line 551, in _historyGetCb
self._onHistoryPrinted()
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 349, in _onHistoryPrinted
super(Chat, self)._onHistoryPrinted()
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_chat.py", line 480, in _onHistoryPrinted
self.messageNew(*data)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_chat.py", line 613, in messageNew
self.createMessage(message)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 352, in createMessage
self.appendMessage(message)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 356, in appendMessage
self.notify(mess_data)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 383, in notify
title=_(u"private message"))
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/core/cagou_main.py", line 825, in desktop_notif
timeout = duration)
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/facades/notification.py", line 47, in notify
app_name=app_name, timeout=timeout, ticker=ticker)
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/facades/notification.py", line 52, in _notify
raise NotImplementedError("No usable implementation found!")
NotImplementedError: No usable implementation found!
/!\ Exception in handler for D-Bus signal:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/connection.py", line 230, in maybe_handle_message
self._handler(*args, **kwargs)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_app.py", line 423, in signalReceived
handler(*args, **kwargs)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_app.py", line 658, in messageNewHandler
uid, timestamp, from_jid, target, msg, subject, type_, extra, profile
File "/Users/xavier/.local/lib/python2.7/site-packages/sat_frontends/quick_frontend/quick_chat.py", line 613, in messageNew
self.createMessage(message)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 352, in createMessage
self.appendMessage(message)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 356, in appendMessage
self.notify(mess_data)
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/plugins/plugin_wid_chat.py", line 383, in notify
title=_(u"private message"))
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/core/cagou_main.py", line 825, in desktop_notif
timeout = duration)
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/facades/notification.py", line 47, in notify
app_name=app_name, timeout=timeout, ticker=ticker)
File "/Users/xavier/.local/lib/python2.7/site-packages/plyer/facades/notification.py", line 52, in _notify
raise NotImplementedError("No usable implementation found!")
NotImplementedError: No usable implementation found!
Can't get avatar: NotFound: Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "<DBus bridge>", line 1, in avatarGet
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/bridge/dbus_bridge.py", line 107, in _callback
result = self.cb[name](*args, **kwargs)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/plugins/plugin_xep_0054.py", line 397, in _getAvatar
d = self.getAvatar(client, jid.JID(entity), cache_only, hash_only)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/plugins/plugin_xep_0054.py", line 413, in getAvatar
raise exceptions.NotFound
NotFound

Can't get avatar: NotFound: Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "<DBus bridge>", line 1, in avatarGet
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/bridge/dbus_bridge.py", line 107, in _callback
result = self.cb[name](*args, **kwargs)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/plugins/plugin_xep_0054.py", line 397, in _getAvatar
d = self.getAvatar(client, jid.JID(entity), cache_only, hash_only)
File "/Users/xavier/.local/lib/python2.7/site-packages/sat/plugins/plugin_xep_0054.py", line 413, in getAvatar
raise exceptions.NotFound
NotFound

After that, cagou got no new content (primtivus still is updated). This is quite annoying.
id

266

author

xma

created

01/07/2018, 21:06

updated

01/07/2018, 21:06

labels
cagou stack exception
type
bug
status
queued
priority
normal
milestone
0.7
severity
major