-
Notifications
You must be signed in to change notification settings - Fork 998
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
'feast.ui_server' is not a package #4241
Comments
This happened to me to. The problem is related to Problem: this does not work with To validate this, you can run and it should work. I can PR: from unittest import mock
import importlib_resources
with mock.patch("feast.ui_server.importlib_resources", new=importlib_resources):
store = FeatureStore()
store.serve_ui(
host=host,
port=port,
get_registry_dump=registry_dump,
registry_ttl_sec=registry_ttl_sec,
root_path=root_path,
) |
The importlib of Python involves many changes and deprecations in newer Python versions. I would prefer to modify the code and catch the latest changes in importlib.resources |
So you suggest fixing this using the built-in one, instead of installing importlib-resources? |
I think I broke this, sorry about that :). changing |
Yes, I made the change in #4109. The difference apparently is that |
Yes, should be TBH. I can PR this tomorrow if it helps. WDYT? |
yup, I'd prefer fixing it with built-in if possible. importlib libraries are pretty popular and have caused diamond dependency problems before... so if there's a way to not depend on them, that would be a plus. thanks a lot |
Good, agreed. Will come back tomorrow for this. Thanks for the ping-pong 🏓 |
yes, the Python built-in one is preferred as the discussion concluded. |
PR raised here: |
Follow this Video, This helped me a lot to crack and overcome this error: https://www.youtube.com/watch?v=rBJvW3AjmsM |
Expected Behavior
feast ui command is starting without errors
Current Behavior
Steps to reproduce
Specifications
Possible Solution
The text was updated successfully, but these errors were encountered: