Skip to content

StopIteration Error for python >= 3.5 #160

Description

@SufferProgrammer

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 <module> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions