-
-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cython Warning with Socket.IO Asyncio Client #363
Comments
This is an interesting issue. Can I ask you to run a quick test, given that you are already set up to run the test app under Cython? Can you add this to your script:
This should print |
Yeah, you are right. This is returning |
FYI, I am running it on Raspbian OS. |
There is already an issue filed on the Cython project for this problem: cython/cython#2273. |
Hi @miguelgrinberg !
The versions I am using are:
I was trying to run the Socket.IO Asyncio client with Cython.
If I use the following program named as hello.py
and convert it into C and then in binary using Cython
Output
second hello
first hello
So it seems Cython works ok with Asyncio.
If I run Python socket IO client with Cython it also works (no warnings). But If I try to run it with Socket.IO Asyncio example
i.e.
import asyncio
import time
import socketio
loop = asyncio.get_event_loop()
sio = socketio.AsyncClient(reconnection=True)
@sio.event
async def connect():
print('connected to server')
@sio.event
async def disconnect():
print('disconnect !!!!!!!!!!!!!')
async def start_server():
await sio.connect('http://localhost:5000')
await sio.wait()
if name == 'main':
loop.run_until_complete(start_server())
I get this warning
If I enable the logger I get
As you can see the WebSocket connection is establishing but connect event does not occur instead it gives a warning and the same thing happens for a disconnect event.
Am I missing something?
The text was updated successfully, but these errors were encountered: