invisibleroads / invisibleroads/socketIO-client
StopIteration Error for python >= 3.5
- Dominant language
- Python
- Stars
- 441
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
hi i wonder i could get answer about my error ASAP. so i wondering around google and not found anything like this error it's only mentioning about not connect with socket.io server, connection refused, and etc. and no thing i found like mine. i wonder if this socketIO-client is not support for python version 3.5+, or there any possibility that make my code error ?
here the error trace i get
`Traceback (most recent call last):
File "clienio.py", line 10, in
socketIO = SocketIO('localhost', 5002, LoggingNamespace)
File "/usr/local/lib/python3.5/dist-packages/socketIO_client-0.7.2-py3.5.egg/socketIO_client/__init__.py", line 353, in __init__
resource, hurry_interval_in_seconds, **kw)
File "/usr/local/lib/python3.5/dist-packages/socketIO_client-0.7.2-py3.5.egg/socketIO_client/__init__.py", line 54, in __init__
self._transport
File "/usr/local/lib/python3.5/dist-packages/socketIO_client-0.7.2-py3.5.egg/socketIO_client/__init__.py", line 62, in _transport
self._engineIO_session = self._get_engineIO_session()
File "/usr/local/lib/python3.5/dist-packages/socketIO_client-0.7.2-py3.5.egg/socketIO_client/__init__.py", line 76, in _get_engineIO_session
transport.recv_packet())
`
`StopIteration`
`DEBUG:socketIO-client:localhost:5002/socket.io [socket.io disconnect]`
and here my code
`import logging`
`from socketIO_client import SocketIO, LoggingNamespace`
`def on_aaa_response(*args):`
` print('on_aaa_response', args)`
`logging.getLogger("requests").setLevel(logging.WARNING)`
`logging.basicConfig(level=logging.DEBUG)`
`socketIO = SocketIO('localhost', 5002, LoggingNamespace)`
`socketIO.on("data", on_aaa_response)`
`socketIO.wait(seconds=1)`
thank you for advise
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.