1

我正在使用 Skype4Py 并创建一个 Skype 机器人。我想在 linux 环境中安装 bot(我记得是 Ubuntu 12.04),然后我安装了 skype 和 bot + 依赖项。

现在,每当我要求 message.Chat.Type 时,它​​都会给我一个命令超时..

有什么解决办法吗?

错误:

Exception in thread Skype4Py MessageStatus event scheduler:
Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
   self.run()
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/utils.py", line 225, in run
handler(*self.args, **self.kwargs)
File "functions/messageProcessor.py", line 161, in processMessages
 if allowed(message, "url_parse"):
File "functions/messageProcessor.py", line 62, in allowed
 chatType = message.Chat.Type
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/chat.py", line 405, in _GetType
    return str(self._Property('TYPE'))
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/chat.py", line 33, in _Property
 return self._Owner._Property('CHAT', self.Name, PropName, Value, Cache)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 296, in _Property
 value = self._DoCommand('GET %s' % jarg, jarg)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 276, in _DoCommand
 self.SendCommand(command)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 778, in     SendCommand
 self._Api.send_command(Command)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/api/posix_x11.py", line 445, in  send_command
 raise SkypeAPIError('Skype command timeout')
SkypeAPIError: Skype command timeout
4

0 回答 0