GithubHelp home page GithubHelp logo

Comments (11)

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

It seems that nbclient should be updated for nbconvert 6.0

@bainadeashish you should be able to work by pinning nbconvert 5.6.1

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

@bainadeashish could you provide some more information about your environment (the output of pip list), and a specific code to reproduce the error?

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

Ah, it seems the issue comes from the fact that nbclient requires python 3.7 (for AsyncGenerator support), and nbconvert 6.0 now relies on nbclient for nbexecute.

We will look for a workaround to maintain some support for Python 3.6 in a patch release, but we already announced that we would be dropping Python 3.6 support in the nbconvert 6.0.

from nbclient.

bainadeashish avatar bainadeashish commented on July 26, 2024

I tried for python 3.8 it works but for 3.6 it fails
Any other solution apart from upgrading our project from 3.6 to latest python release?

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

Any other solution apart from upgrading our project from 3.6 to latest python release?

You can either

  • upgrade python to 3.7 or 3.8

or

  • pin nbconvert to 5.6.1 (any release before 6.0) until we publish a patch release with a workaround.

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

Hum typing.AsyncGenerator is already defined in python 3.6.10 apparently.

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

@bainadeashish correction: AsyncGenerator is new in Python 3.6.1, and absent in Python 3.6.0, which you are using.

from nbclient.

bainadeashish avatar bainadeashish commented on July 26, 2024

@SylvainCorlay thank you downgraded version of nbclien t to 5.6.1 and that solved issue.

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

@bainadeashish great. Btw, upgrading python from 3.6.0 to 3.6.1 or any later version would have worked. We did not catch it in our CI because our 3.6 tests run on a more recent patch version.

from nbclient.

MSeal avatar MSeal commented on July 26, 2024

And I don't think we'll support 3.6.0 -- that version has many missing security patches and broken functionality

from nbclient.

SylvainCorlay avatar SylvainCorlay commented on July 26, 2024

Agreed. Closing. I will add a comment in nbconvert's readme that 3.6.1 is required.

from nbclient.

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.