Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use wokkel with google talk: (error twisted.words.protocols.jabber.sasl.SASLNoAcceptableMechanism)
    primarykey
    data
    text
    <p>I tried the answer given <a href="https://stackoverflow.com/questions/227279/how-do-you-create-a-simple-google-talk-client-using-the-twisted-words-python-lib">here</a>. Looked up the problem <a href="http://blog.bluendo.com/ff/twisted-and-xmpp" rel="nofollow noreferrer">here</a>, and found something to indicate this is completely hopeless <a href="http://metajack.im/2008/11/17/tls-issues-with-google-talk/" rel="nofollow noreferrer">here</a></p> <p>I have already tried upgrading my openssl (macports) and tried installing pyopenssl (macports.) Although I have had problems with macports before, I have had success with xmpppy and sleekxmpp. Hence, I have to wonder whether there is some kind of incompatibility between wokkel and google talk (as suggested in the third link.) This seems odd to me since google talk is (as far as I know) a very popular medium of communication.</p> <p>My question is simply whether anyone has successfully gotten wokkel working with google talk since 2008, and if so, how?</p> <p>This is what I have:</p> <pre><code>from twisted.words.xish import domish from wokkel.xmppim import MessageProtocol, AvailablePresence class EchoBotProtocol(MessageProtocol): def connectionMade(self): print "Connected!" # send initial presence self.send(AvailablePresence()) def connectionLost(self, reason): print "Disconnected!" def onMessage(self, msg): print str(msg) if msg["type"] == 'chat' and hasattr(msg, "body"): reply = domish.Element((None, "message")) reply["to"] = msg["from"] reply["from"] = msg["to"] reply["type"] = 'chat' reply.addElement("body", content="echo: " + str(msg.body)) self.send(reply) from twisted.application import service from twisted.words.protocols.jabber import jid from wokkel.client import XMPPClient application = service.Application("echobot") xmppclient = XMPPClient(jid.internJID("someuser@example.com/echobot"), "pass") xmppclient.logTraffic = False echobot = EchoBotProtocol() echobot.setHandlerParent(xmppclient) xmppclient.setServiceParent(application) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload