Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug entry point #818

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

loliverhennigh
Copy link
Collaborator

@loliverhennigh
Copy link
Collaborator Author

/blossom-ci

@loliverhennigh
Copy link
Collaborator Author

/blossom-ci

model = model.load()
else:
raise ValueError(f"Model {name} is not a valid entry point.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeError

@@ -16,6 +16,7 @@

import warnings
from importlib.metadata import EntryPoint, entry_points
from importlib_metadata import EntryPoint as EntryPointOld
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid this import from importlib_metadata? This has been deprecated in the newer versions of Python

@@ -16,6 +16,7 @@

import warnings
from importlib.metadata import EntryPoint, entry_points
from importlib_metadata import EntryPoint as EntryPointOld
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a small comment explaining what this is, why it here?
We will forget in a month.

importlib_metadata is a back port of new APIs for previous python vesions, also users dont necessarily need this installed. If it happens to be installed, we should check it.

Or does this come with base python (I dont think so but maybe)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best guess is somehow older versions of importlib are getting being used and some how this impacts the return type on entry_points

Copy link
Collaborator

@NickGeneva NickGeneva Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this solution?

sphinx-doc/sphinx#10157 (comment)

NVM this one wont work...

@NickGeneva
Copy link
Collaborator

/blossom-ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants