feast-dev / feast-dev/feast-credit-score-local-tutorial

the feature transformation server has a dependece of libpq-dev

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I need to install it then the psycopg can run correctly:

` sudo apt-get install libpq-dev`

the error:
```
Traceback (most recent call last):
File "/home/ubuntu/feast-credit-score-local-tutorial/app_go.py", line 14, in
main()
File "/home/ubuntu/feast-credit-score-local-tutorial/app_go.py", line 7, in main
store = FeatureStore(repo_path="./feature_repo/")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/feature_store.py", line 158, in __init__
self._registry = SqlRegistry(registry_config, self.config.project, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/feast/infra/registry/sql.py", line 256, in __init__
self.write_engine: Engine = create_engine(
^^^^^^^^^^^^^^
File "", line 2, in create_engine
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
return fn(*args, **kwargs) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 602, in create_engine
dbapi = dbapi_meth(**dbapi_args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/sqlalchemy/dialects/postgresql/psycopg.py", line 418, in import_dbapi
import psycopg
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/psycopg/__init__.py", line 9, in
from . import pq # noqa: F401 import early to stabilize side effects
^^^^^^^^^^^^^^^^
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/psycopg/pq/__init__.py", line 116, in
import_from_libpq()
File "/home/ubuntu/feast-credit-score-local-tutorial/.venv/lib/python3.12/site-packages/psycopg/pq/__init__.py", line 108, in import_from_libpq
raise ImportError(
ImportError: no pq wrapper available.
Attempts made:
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'python' implementation: libpq library not found

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.