Giter Club home page Giter Club logo

Comments (2)

erdewit avatar erdewit commented on May 12, 2024

Not sure what loop you're using but it can't really be one from asyncio. Only loops from asyncio can be patched.

from nest_asyncio.

stroxler avatar stroxler commented on May 12, 2024

@erdewit I just hit the same issue

I think the cause may be that the asyncio maintainers have been messing with their internal api - for example, what used to be called Task._Task__step seems to have been renamed first to Task._step and then again to Task.__step.

My company's python3.6 kernel works fine with nest_asyncio, but our 3.7 is currently on the release where the method is named Task._step

Here's an example, this is the diff where Task._step was renamed to Task.__step:
python/cpython@22feeb8

I suppose we could probably modify nest_asyncio to discover the right function names on-the-fly, although the resulting code seems likely to get confusing :/

from nest_asyncio.

Related Issues (20)

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.