[Bug 1458651] Re: Please backport python-socketio-client 0.5.3-1 (universe) from utopic
Tim Landscheidt
tim at tim-landscheidt.de
Wed May 27 02:45:17 UTC 2015
Tested with script from
https://wikitech.wikimedia.org/wiki/RCStream#Python:
import socketIO_client
class WikiNamespace(socketIO_client.BaseNamespace):
def on_change(self, change):
print('%(user)s edited %(title)s' % change)
def on_connect(self):
self.emit('subscribe', 'commons.wikimedia.org')
socketIO = socketIO_client.SocketIO('stream.wikimedia.org', 80)
socketIO.define(WikiNamespace, '/rc')
socketIO.wait()
This works on Trusty, but on Precise it fails with:
scfc at toolsbeta-test-precise:~$ bin/socketio_client-test.py
Traceback (most recent call last):
File "bin/socketio_client-test.py", line 13, in <module>
socketIO = socketIO_client.SocketIO('stream.wikimedia.org', 80)
File "/usr/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 136, in __init__
self.define(Namespace)
File "/usr/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 150, in define
namespace = Namespace(self._transport, path)
File "/usr/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 237, in _transport
self.__transport = self._get_transport()
File "/usr/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 251, in _get_transport
self.is_secure, self.base_url, **self.kw)
File "/usr/lib/python2.7/dist-packages/socketIO_client/__init__.py", line 402, in _get_socketIO_session
response_parts = response.text.split(':')
AttributeError: 'Response' object has no attribute 'text'
Exception AttributeError: "'SocketIO' object has no attribute '_SocketIO__transport'" in <bound method SocketIO.__del__ of <socketIO_client.SocketIO object at 0x7f234dddd4d0>> ignored
scfc at toolsbeta-test-precise:~$
This is probably due to python-requests being 0.8.2 in Precise and 2.2.1
in Trusty.
** Description changed:
Please backport python-socketio-client 0.5.3-1 (universe) from utopic to
precise, trusty.
Reason for the backport:
========================
We are using this module locally in our Precise and Trusty cluster and would like to see this backported properly (cf. https://phabricator.wikimedia.org/T91874).
Testing:
========
Mark off items in the checklist [X] as you test them, but please leave the checklist so that backporters can quickly evaluate the state of testing.
You can test-build the backport in your PPA with backportpackage:
$ backportpackage -u ppa:<lp username>/<ppa name> -s utopic -d precise python-socketio-client
$ backportpackage -u ppa:<lp username>/<ppa name> -s utopic -d trusty python-socketio-client
* precise:
[X] Package builds without modification
[ ] python-socketio-client installs cleanly and runs
* trusty:
[X] Package builds without modification
- [ ] python-socketio-client installs cleanly and runs
+ [X] python-socketio-client installs cleanly and runs
No reverse dependencies
--
You received this bug notification because you are a member of Ubuntu
Backporters, which is subscribed to Precise Backports.
Matching subscriptions: ubuntu-backporters
https://bugs.launchpad.net/bugs/1458651
Title:
Please backport python-socketio-client 0.5.3-1 (universe) from utopic
To manage notifications about this bug go to:
https://bugs.launchpad.net/precise-backports/+bug/1458651/+subscriptions
More information about the ubuntu-backports
mailing list