meetingology should start supporting Python 3

Bug #1531427 reported by Mikaela Suomalainen on 2016-01-06
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu IRC Bots
Undecided
Unassigned

Bug Description

Meetingology (the bot at freenode) has been running on Limnoria for a long time as it's the only active Supybot fork.

Recently they have been starting to move to supporting only Python 3 which has less issues e.g. with charsets. Meetingology the bot could be converted to Python 3 if the meetingology plugin supported it.

Mikaela Suomalainen (mikaela) wrote :

```
+-----------------------------------------------------+
| Running Limnoria on Python versions older than |
| 2.7.9 is deprecated. |
| Please consider upgrading to Python 3.4 or greater. |
+-----------------------------------------------------+
```

Says the most recent meetingology update so I am raising the importance for this issue.

Changed in ubuntu-bots:
status: New → Confirmed
Mikaela Suomalainen (mikaela) wrote :

Except that I apparently cannot change importance even if I can mark the issue as confirmed.

Mikaela Suomalainen (mikaela) wrote :

```
INFO 2016-02-24T07:22:01 supybot Completed daemonization. Current PID: 2043
INFO 2016-02-24T07:22:01 supybot Connecting to chat.freenode.net:6697.
WARNING 2016-02-24T07:22:01 supybot Not checking SSL certificates, connections are vulnerable to man-in-the-middle attacks. Set supybot.protocols.ssl.verifyCertificates to "true" to enable validity checks.
ERROR 2016-02-24T07:22:01 supybot Exception connecting to freenode:
Traceback (most recent call last):
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/plugins/Owner/plugin.py", line 125, in __init__
    self._connect(network)
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/plugins/Owner/plugin.py", line 165, in _connect
    driver = drivers.newDriver(newIrc)
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/drivers/__init__.py", line 190, in newDriver
    driver = driverModule.Driver(irc)
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/drivers/Socket.py", line 85, in __init__
    self.connect()
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/drivers/Socket.py", line 218, in connect
    self.reconnect(reset=False, **kwargs)
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/drivers/Socket.py", line 281, in reconnect
    self.starttls()
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/drivers/Socket.py", line 376, in starttls
    ca_file=network_config.ssl.authorityCertificate(),
  File "/home/meetingology/.local/lib/python2.7/site-packages/supybot/utils/net.py", line 169, in ssl_wrap_socket
    ssl_version=ssl.ssl.PROTOCOL_TLSv1, verify_mode=ssl.CERT_NONE)
AttributeError: 'module' object has no attribute 'ssl'
ERROR 2016-02-24T07:22:01 supybot Exception id: 0xf6f94
ERROR 2016-02-24T07:22:01 supybot Could not connect to freenode: 'module' object has no attribute 'ssl'.
```

Downgrading to older version for now.

Mikaela Suomalainen (mikaela) wrote :

The previous comment was regression in Limnoria that has since been fixed.

* https://github.com/ProgVal/Limnoria/issues/1217

However they still consider this version of Python deprecated, so this issue is important.

Mikaela Suomalainen (mikaela) wrote :

It appears there is no suggestion in Python3 in setup.py anymore, but there is warning about old Python 2.

```
setup.py:247: DeprecationWarning: Running Limnoria on Python older than 2.7.9 is not recommended because it does not support SSL certificate verification. For more informations, see: <http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>
  DeprecationWarning)
```

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers