-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
python-cosmosc2 appears to work as expected with Python 3.9, but no longer works with Python 3.10. I realize this repo is probably no longer active, but perhaps someone more familiar with AsyncIO than me has an easy solution.
2022-11-18 16:01:16,553 ERROR root As of 3.10, the *loop* parameter was removed from Event() since it is no longer necessary
Traceback (most recent call last):
File "/Users/xxx/python-cosmosc2/examples/cosmos_v5_stream_example.py", line 107, in <module>
main()
File "/Users/xxx/python-cosmosc2/examples/cosmos_v5_stream_example.py", line 99, in main
data = api.get()
File "/Users/xxx/python-cosmosc2/cosmosc2/stream_api/data_extractor_client.py", line 141, in get
stream = CosmosAsyncStream()
File "/Users/xxx/python-cosmosc2/cosmosc2/stream.py", line 57, in __init__
self._stop_event = asyncio.Event(loop=self._loop)
File "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/locks.py", line 168, in __init__
super().__init__(loop=loop)
File "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/mixins.py", line 17, in __init__
raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Event() since it is no longer necessary
Metadata
Metadata
Assignees
Labels
No labels