-
Notifications
You must be signed in to change notification settings - Fork 296
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
base: main
Are you sure you want to change the base?
Bug entry point #818
Conversation
/blossom-ci |
/blossom-ci |
model = model.load() | ||
else: | ||
raise ValueError(f"Model {name} is not a valid entry point.") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/blossom-ci |
#817