Repository navigation
bug in version 0.39.0: Could not import module 'feast.infra.online_stores.sqlite' while attempting to load class 'SqliteOnlineStoreConfig' #4293
Copy link
Copy link
Closed
Labels
Description
Expected Behavior
Note this error goes away when I downgrade to 0.38.0
pip install 'feast[gcp]'feast init -t gcp- inside the created repo:
python test_workflow.py
This should just work, but I'm getting the error below.
Current Behavior
python test_workflow.py
Traceback (most recent call last):
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/importer.py", line 26, in import_class
module = importlib.import_module(module_name)
File "/Users/amirali/miniconda3/envs/wfg/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/infra/online_stores/sqlite.py", line 23, in <module>
import sqlite_vec
ModuleNotFoundError: No module named 'sqlite_vec'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/amirali/Desktop/feature_store_demo/sharp_kiwi/feature_repo/test_workflow.py", line 180, in <module>
run_demo()
File "/Users/amirali/Desktop/feature_store_demo/sharp_kiwi/feature_repo/test_workflow.py", line 12, in run_demo
store = FeatureStore(repo_path=".")
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/feature_store.py", line 143, in __init__
self.config = load_repo_config(
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/repo_config.py", line 545, in load_repo_config
c = RepoConfig(**raw_config)
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/repo_config.py", line 188, in __init__
super().__init__(**data)
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/pydantic/main.py", line 176, in __init__
self.__pydantic_validator__.validate_python(data, self_instance=self)
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/repo_config.py", line 349, in _validate_online_store_config
online_config_class = get_online_config_from_type(online_store_type)
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/repo_config.py", line 515, in get_online_config_from_type
return import_class(module_name, config_class_name, config_class_name)
File "/Users/amirali/Desktop/feature_store_demo/feature_store/lib/python3.9/site-packages/feast/importer.py", line 31, in import_class
raise FeastModuleImportError(module_name, class_name) from e
feast.errors.FeastModuleImportError: Could not import module 'feast.infra.online_stores.sqlite' while attempting to load class 'SqliteOnlineStoreConfig'
Steps to reproduce
pip install 'feast[gcp]'feast init -t gcp- inside the created repo:
python test_workflow.py
Note this error goes away when I downgrade to 0.38.0
Specifications
- Version: 0.39.0
- Platform: Mac
- Subsystem:
Possible Solution
downgrade to 0.38.0
Reactions are currently unavailable
Activity
franciscojavierarceo commentedon Jun 19, 2024
I'll make a patch for this but the simple fix is to
pip install sqlite_vec. Sorry about the bug here.amirali-shfz commentedon Jun 19, 2024
cool thanks!
franciscojavierarceo commentedon Jun 19, 2024
@tokoko I'm having issues trying to get pixi working with 3.9
I'm removing the SQLite separation we had and i'm just going to add it to the default installation but when I try to recompile the pixi packages. It worked previously, so I'm confused about what changed.
franciscojavierarceo commentedon Jun 19, 2024
Here's the relevant PR: #4294
tokoko commentedon Jun 19, 2024
You just need to add
osx-64here. But why do you need to move to the default install? Isn't importing it only when enabled a better option?mrafayaleem commentedon Jun 24, 2024
This will possibly make the
feast uistop working.pip install sqlite_vecmight be a better fix.amirali-shfz commentedon Jun 25, 2024
I am using 0.38.0 and when I run
feast uiI getcould this be related?
tokoko commentedon Jun 26, 2024
@amirali-shfz No, that's a different one, already fixed #4241
tokoko commentedon Jun 26, 2024
@franciscojavierarceo Should I take this one?
franciscojavierarceo commentedon Jul 2, 2024
I'm going to release a patch this week 👍
franciscojavierarceo commentedon Jul 4, 2024
This has been fixed and published in 0.39.1.
CC @tokoko @jeremyary
That said, there are still failures in publishing the images. https://github.com/feast-dev/feast/actions/runs/9791956416