Giter Site home page Giter Site logo

Comments (3)

iso2013 avatar iso2013 commented on August 16, 2024 2

This appears to be because the SelectableGroups class, which implemented a dictionary-like interface for the result of entry_points is deprecated and was removed in Python 3.12.

Here's the class in Python 3.11., and here's the file in 3.12.

The removal of this class means that the function entry_points() in 3.12 can no longer return a dictionary-like object like it did in 3.11.

Unfortunately I think these API changes are to be expected between 3.8 and 3.12, since importlib's metadata functionality was new in 3.8 and only considered to be provisional.

I would suggest either checking to see first if entry_points(group=group) gives an error, and if it does, fall back to the current implementation.
I can open a PR soon, although I'm not sure if the suggested fix would be to add this sort of edge case handling, or instead just update the whole project to 3.12 - it seems like from these lines there's some kind of handling of multiple versions.

Edit: From what I can tell, import importlib.metadata would only throw an error before Python 3.8, so those lines can probably be removed outright, since the project seems to require at least 3.9.

from jupyter-book.

mango-matt avatar mango-matt commented on August 16, 2024

I have a similar problem. Not sure what the root cause is but downgrading to python3.11 provided a temporary workaround

from jupyter-book.

iso2013 avatar iso2013 commented on August 16, 2024

I have the same issue, running the same configuration except with MyST-Parser version 2.0.0.

from jupyter-book.

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.