1stvamp / hippybot

Hipchat.com bot written in Python with a simple plugin API
Other
95 stars 42 forks source link

Hippybot is broken under Python 2.7.9 #18

Open vmalloc opened 9 years ago

vmalloc commented 9 years ago

When attempting to run I get:

Traceback (most recent call last):
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/hippybot/bot.py", line 256, in run
    bot = HippyBot(self.config._sections)
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/hippybot/bot.py", line 61, in __init__
    self.join_room(channel, config['connection']['nickname'])
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/hippybot/bot.py", line 166, in join_room
    self.connect().send(pres)
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/jabberbot.py", line 208, in connect
    conres = conn.connect()
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/xmpp/client.py", line 205, in connect
    while not self.TLS.starttls and self.Process(1): pass
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/xmpp/dispatcher.py", line 303, in dispatch
    handler['func'](session,stanza)
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/xmpp/transports.py", line 337, in StartTLSHandler
    self._startSSL()
  File ".../src/work/infrabot/.env/lib/python2.7/site-packages/xmpp/transports.py", line 316, in _startSSL
    tcpsock._sslIssuer = tcpsock._sslObj.issuer()
AttributeError: '_ssl._SSLSocket' object has no attribute 'issuer'
1stvamp commented 9 years ago

@vmalloc thanks for this and sorry for the late response, seems I'm still not getting notifications for this repo off GH, doh.

jimlerza commented 9 years ago

This is actually a bug in xmlpppy. I was able to get hippybot working on Python 2.7.9 by replacing xmlpppy with ArchipelProject/xmpppy.