Skip to content

AdbcDriverPostgresqlInit undefined in Python Lib 0.7.0 #1244

@fbalicchia

Description

@fbalicchia

I'm trying to use the adbc library in Python 3.11 to interact with a PostgreSQL database, but I'm encountering an error related to the adbc_driver_postgresql module. The error message provided suggests that there's an issue with the PostgreSQL driver initialization.

adbc_driver_manager.InternalError: INTERNAL: dlsym(AdbcDriverPostgresqlInit) failed: /home/arrow-adbc/python/adbc_driver_postgresql/adbc_driver_postgresql/libadbc_driver_postgresql.so: undefined symbol: AdbcDriverPostgresqlInit

Snippet that I used to reproduce the problem is

import adbc_driver_sqlite.dbapi

with adbc_driver_sqlite.dbapi.connect() as conn:
    with conn.cursor() as cur:
        cur.execute("SELECT 1")
        print(cur.fetch_arrow_table())

In my env there are the following deps

adbc-driver-manager    0.7.0
adbc-driver-postgresql 0.7.0
numpy                  1.26.1
pip                    23.3
pyarrow                12.0.0
setuptools             68.0.0
wheel                  0.41.2

and I bootstrap postgresql with

$ docker run -it --rm \
    -e POSTGRES_PASSWORD=password \
    -e POSTGRES_DB=tempdb \
    -p 5432:5432 \
    postgres

Can you please suggest some actions to continue with my experiments?

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