GithubHelp home page GithubHelp logo

python-cosmosc2's People

Contributors

ryan-pratt avatar ryanmelt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-cosmosc2's Issues

AsyncIO error with Python 3.10

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.