Skip to content

the feature transformation server has a dependece of libpq-dev #16

@shuchu

Description

@shuchu

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 <module>
    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 "<string>", 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 <module>
    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 <module>
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions