Skip to content
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

Error in version 0.40.1: FeastModuleImportError: Could not import module 'feast.infra.offline_stores.contrib.postgres_offline_store.postgres' while attempting to load class 'PostgreSQLOfflineStoreConfig' #4507

Closed
dejavu284 opened this issue Sep 10, 2024 · 4 comments

Comments

@dejavu284
Copy link

The error disappears when I downgrade the version to 0.39.0.

The feature store object was successfully created

When creating a feature store object, an error occurs: FeastModuleImportError: Failed to import module 'feast.infra.offline_stores.contrib.postgres_offline_store.postgres' when trying to load class 'PostgreSQLOfflineStoreConfig'

Steps to reproduce:

  • Create new conda env: conda create -n feast-mvp
  • Install python: conda install python==3.9.13
  • Install feast: pip install feast==0.40.1
  • Install other libs: pip install postgres psycopg2-binary==2.9.9

Specifications

  • Version: 0.40.1
  • Platform: windows
  • Subsystem: wsl ubuntu (for reproduce)

Possible Solution

@franciscojavierarceo
Copy link
Member

Is this issue still happening?

@dmartinol
Copy link
Contributor

I think you're installing the wrong version of psql dependencies, according to setup.py.

Try this instead, to ensure that you are installing the validated dependencies:

pip install "feast[postgres]==0.40.1"

Note: please avoid pip install postgres psycopg2-binary==2.9.9

Then validate with:

> pip list | grep psyco
psycopg                   3.1.18
psycopg-binary            3.1.18
psycopg-pool              3.2.3

@dmartinol
Copy link
Contributor

@franciscojavierarceo I think we can close this one, it was definitely an environment issue

@dmartinol
Copy link
Contributor

@franciscojavierarceo what about this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants