0
이 코드를 실행하여 gtalk 클라이언트를 만들려고하는데이 코드가 실행되고 있지 않습니다. 나는 이것에 새로운 나는 바보 같은 실수를하고있는 것 같아. 나 좀 도와 줘. 또한 이러한 경고는 오류가 아니며, 그들은의 xmpp
모듈은 몇 가지되지 않는 모듈을 사용하여 코드에 의해 발생되지 않는 방법이 경고Python gtalk 클라이언트 코드가 작동하지 않습니다.
#!/usr/bin/env python
import xmpp
import hashlib
user="[email protected]"
password="password"
server="gmail.com"
jid = xmpp.JID(user)
connection = xmpp.Client(server,debug=[])
connection.connect()
result = connection.auth(jid.getNode(), password,"LFY-client")
connection.sendInitPresence()
while connection.Process(1):
pass
The code is giving following error :
/usr/lib/python2.6/dist-packages/xmpp/auth.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha,base64,random,dispatcher,re
/usr/lib/python2.6/dist-packages/xmpp/auth.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/usr/lib/python2.6/dist-packages/xmpp/transports.py:308: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
tcpsock._sslObj = socket.ssl(tcpsock._sock, None, None)
어떻게 업그레이드합니까? – vasu
@vasu 배포판 문서를 읽으십시오. – iabdalkader