-
Notifications
You must be signed in to change notification settings - Fork 43
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
TypeError: Semaphore.__init__() got an unexpected keyword argument 'loop' in transport/long_polling.py file #19
Comments
I have tried to find a solution to this but couldn't find a fix anywhere so I had to do something about it myself. This is caused because 3.11 gets rid of the loop argument. Fix:
self._http_semaphore = asyncio.Semaphore(2)
done, pending = await asyncio.wait( |
Maintainer seems to not have anymore activity in maintaining the module, and indeed the quick fix is to remove the loop arguments from those files. Did anybody fork and maintain this module separately that is published? |
It seems like yes: https://pypi.org/project/aiocometd-noloop/ |
I am getting a type error when I run a python script. It gives me a type error with loops in semaphore, which was deprecated in the latest python releases.
Is there any alternatives for this issue?
The text was updated successfully, but these errors were encountered: