feast.errors.FeastClassImportError: Could not import class 'MyCustomEngine' from module 'feast_custom_engine'
try to add a custom engine(https://docs.feast.dev/how-to-guides/customizing-feast/creating-a-custom-materialization-engine), but got some errors below: feast.errors.FeastClassImportError: Could not import class 'MyCustomEngine' from module 'feast_custom_engine'
my project structure: . ├── init.py ├── data │ ├── driver_stats.parquet │ ├── online_store.db │ └── registry.db ├── entity_example.py ├── example.py ├── feast_custom_engine │ ├── init.py │ ├── pycache │ │ └── init.cpython-38.pyc │ └── my_custom_engine.py └── feature_store.yaml
command: PYTHONPATH=$PYTHONPATH:/Users/xx/feast_test/my_project/feast_custom_engine feast --log-level DEBUG materialize 2022-01-01 2022-12-12
error details: Traceback (most recent call last):
File "/Users/xx/.pyenv/versions/3.8.10/bin/feast", line 8, in
Hey @newsbreak-tonglin
It looks like you may need to rename init.py to __init__.py to make MyCustomEngine importable.
@niklasvm It is init.py actually, but it still can't be imported

What does your feature_store.yaml look like? Based on your screenshot I would expect this to work:
batch_engine: feature_custom_engine.feast_custom_engine.MyCustomEngine
@niklasvm feature_custom_engine.feast_custom_engine.MyCustomEngine doesn't work, below is my feature_store.yaml
project: my_project registry: data/registry.db batch_engine: feature_custom_engine.feast_custom_engine.MyCustomEngine provider: local online_store: path: data/online_store.db offline_store: type: file
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.