2014-02-18 65 views
0

當我運行從github平安例子,我得到這個AttributeError蟒蛇sleekxmpp平錯誤

INFO  Negotiating TLS 
INFO  Using SSL version: 1 
INFO  Node set to: [email protected]/50182ab4 
INFO  CERT: Time until certificate expiration: 1635 days, 15:10:17.248035 
INFO  Waiting for </stream:stream> from server 
ERROR Error processing event handler: <bound method PingTest.start of <__main__.PingTest object at 0x12cded0>> 
Traceback (most recent call last): 
    File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1659, in _event_runner 
    func(*args) 
    File "sleekxmpp_ping.py", line 67, in start 
    rtt = self['xep_0199'].ping(self.pingjid, timeout=10) 
    File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/plugins/base.py", line 304, in __getattr__ 
    return object.__getattribute__(self, key) 
AttributeError: 'XEP_0199' object has no attribute 'ping' 
ERROR 'XEP_0199' object has no attribute 'ping' 
Traceback (most recent call last): 
    File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1659, in _event_runner 
    func(*args) 
    File "sleekxmpp_ping.py", line 67, in start 
    rtt = self['xep_0199'].ping(self.pingjid, timeout=10) 
    File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/plugins/base.py", line 304, in __getattr__ 
    return object.__getattribute__(self, key) 
AttributeError: 'XEP_0199' object has no attribute 'ping' 
Done 

我跑sleekxmpp 1.1.11。任何人都會發光?

回答

0

ping方法被添加到this commit中,並首次出現在sleekxmpp 1.2.0版中。

+0

升級到sleekxmpp 1.2.4。現在它甚至不認證。 提供CERT錯誤。 – koogee

+1

這應該是第二個問題。我已經爲你排隊了。 –