Doc: asyncio client: code requires Python 3.7+ #917
-
Describe the bug https://python-socketio.readthedocs.io/en/latest/intro.html#client-examples Traceback (most recent call last): According to Python docs asyncio.run is introduced in 3.7 version. I have no clear suggestion how to improve your docs maybe mention the code is 3.7+ only. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh my. I've changed the code to use verbose:
But now I've got another traceback:
|
Beta Was this translation helpful? Give feedback.
-
@Balix are you reading the installation docs? You have a clear error message that points to the problem:
You have not installed the client properly, there's missing stuff. See https://python-socketio.readthedocs.io/en/latest/client.html#installation. With regards to the first problem, you are correct, the example uses |
Beta Was this translation helpful? Give feedback.
@Balix are you reading the installation docs? You have a clear error message that points to the problem:
You have not installed the client properly, there's missing stuff. See https://python-socketio.readthedocs.io/en/latest/client.html#installation.
With regards to the first problem, you are correct, the example uses
asyncio.run()
which is 3.7+. You don't have to use that though, as you noticed you can also go with the older start up method, which should work in 3.6. I do not keep track of 3.6 support anymore, so it is possible that something eventually will break, but I believe at this point the library should work fine in 3.6. But I …