Ubuntu,Skype和Python

时间:2014-08-11 23:54:38

标签: python ubuntu skype skype4py

我正在使用Skype4Py并创建一个skype bot。 我想在Linux环境中安装机器人(Ubuntu 12.04,我记得正确) 我安装了skype和bot + dependicies。

现在每当我要求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

0 个答案:

没有答案