Comments (11)
Good, agreed. Will come back tomorrow for this. Thanks for the ping-pong 🏓
from feast.
This happened to me to. The problem is related to importlib_resources
.
Problem: this does not work with importlib.resources
Solution: install importlib-resources
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,
)
from feast.
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
from feast.
So you suggest fixing this using the built-in one, instead of installing importlib-resources?
from feast.
I think I broke this, sorry about that :). changing importlib_resources.files(__name__)
with importlib_resources.files('feast')
should be a fix if I'm not mistaken. I was for some reason still not able to start the ui server with the change applied, but it seemed to fix the is not a package
error. If anyone can verify it, would be a great help...
from feast.
For what I see, the difference is using the builtin vs the library. Not the package name
from feast.
Yes, I made the change in #4109. The difference apparently is that files
method in library expects anchor
file path as a first parameter, while the same method in built-in expects a package name. I thought there were supposed to be drop-in replacements and missed that...
from feast.
Yes, should be TBH. I can PR this tomorrow if it helps.
Option A) we re-install the lib
Option B) we fix it using the built-in if possible
WDYT?
from feast.
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
from feast.
So you suggest fixing this using the built-in one, instead of installing importlib-resources?
yes, the Python built-in one is preferred as the discussion concluded.
from feast.
PR raised here:
#4248
from feast.
Related Issues (20)
- Update the Snowflake document to mention the SQL query string limitation. HOT 2
- Add `--tags` filtering capability to the `feast feature-views list` cli command
- Feature UI Server image won't start in an OpenShift cluster
- Add Python Native Support for ODFVs in Spark get_historical_features() HOT 1
- Python feature server giving error -> unexpected keyword argument 'no_feature_log'
- Add support for ML Metadata or alternative
- Add `online_read_async` method to Postgres Online Store HOT 2
- Add support for Python 3.11 and Ubuntu for SQLite HOT 2
- Update docs to recommend Python as the recommended language for a service
- Add `get_online_features` method in `OnlineStore` interface HOT 1
- `apply_materialization` for Remote Registry fails for Stream Feature Views
- Add feature transformation support to FeatureView
- ODFV Python mode breaks when using mixed sources HOT 1
- Bug: Regression in BigQuery offline store caused by newer pydantic versions
- Feat: New version of entity_key serDe
- Add a family of Model objects to feast HOT 11
- bug in version 0.39.0: Could not import module 'feast.infra.online_stores.sqlite' while attempting to load class 'SqliteOnlineStoreConfig' HOT 5
- Minor typo in test_local_feature_store.py
- Rewrite SparkOfflineStore with ibis
- feastdev/feature-server{,-java} 0.38.0 & 0.39.0 tags missing from Docker Hub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feast.