Skip to content

CI is failing, because 'psycopg' is not installed #2424

Closed
doublebyte1/pygeoapi
#33

Description

@doublebyte1

Description

tests/provider/test_postgresql_provider is failing on the CI with this error:

pygeoapi/provider/sql.py:815: in __init__
    super().__init__(provider_def, driver_name, extra_conn_args)
pygeoapi/provider/sql.py:129: in __init__
    self._engine = get_engine(
pygeoapi/provider/sql.py:694: in get_engine
    engine = create_engine(
<sqlalchemy generated warned() wrapper for sqlalchemy.engine.create.create_engine>:2: in create_engine
    return target(fn, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/sqlalchemy/util/deprecations.py:281: in warned
    return fn(*args, **kwargs)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/site-packages/sqlalchemy/engine/create.py:602: in create_engine
    dbapi = dbapi_meth(**dbapi_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'sqlalchemy.dialects.postgresql.psycopg.PGDialect_psycopg'>

    @classmethod
    def import_dbapi(cls):
>       import psycopg
E       ModuleNotFoundError: No module named 'psycopg'

Steps to Reproduce
Run the build task on the CI and watch for the provider tests.

Expected behavior
CI is expected to execute the tests, using the dependencies that were installed through the requiremens-provider.txt.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. self-assigned this
    on Sep 29, 2026
  3. added this to the 0.25.0 milestone on Sep 29, 2026
  4. doublebyte1 commented on Oct 29, 2026

    @doublebyte1
    ContributorAuthor

    Closing this, as it was fixed by: #2455

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

Metadata

Metadata

Assignees

Labels

OGC API - Featuresbug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions