Skip to content

Regression in 1.4.0: adbc_driver_duckdb is not found #74

Closed

Description

@danielballan

What happens?

This documented example:

import adbc_driver_duckdb.dbapi

with adbc_driver_duckdb.dbapi.connect("test.db") as conn, conn.cursor() as cur:
    cur.execute("SELECT 42")
    # fetch a pyarrow table
    tbl = cur.fetch_arrow_table()
    print(tbl)

works on 1.3.2:

❯ uv run python main.py
Uninstalled 1 package in 1ms
Installed 1 package in 7ms
pyarrow.Table
42: int32
----
42: [[42]]

but fails on 1.4.0:

❯ uv run python main.py
Traceback (most recent call last):
  File "/home/dallan/Repos/bnl/duckdb_adbc_regression/main.py", line 1, in <module>
    import adbc_driver_duckdb.dbapi
ModuleNotFoundError: No module named 'adbc_driver_duckdb'

To Reproduce

See gist for full Python environment specification, as well as the example code above.

OS:

Ubuntu x86_64

DuckDB Version:

1.4.0

DuckDB Client:

Pytyhon

Hardware:

No response

Full Name:

Dan Allan

Affiliation:

Brookhaven National Laboratory

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Activity

  1. changed the title [-]Regression in 1.4.0: adbc_driver_duckdb is not found[/-] [+]Regression in 1.4.0: `adbc_driver_duckdb` is not found[/+] on Sep 17, 2025
  2. guillesd commented on Sep 18, 2025

    @guillesd
    Member
  3. evertlammerts commented on Sep 18, 2025

    @evertlammerts
    Member

    Yes, this is a miss. The package is still there, it's just not exported in pyproject.toml. I'll also have to check why the tests didn't flag this.

    @danielballan Thanks for the report. We'll get this back into v1.4.1.

  4. danielballan commented on Sep 18, 2025

    @danielballan
    Author

    Thanks for taking a look, and for your work on this excellent project!

  5. transferred this issue fromduckdb/duckdbon Sep 19, 2025
  6. evertlammerts commented on Sep 24, 2025

    @evertlammerts
    Member

    The package is working again on my branch, but I seem to have hit a little snag with the adbc-driver-manager on Windows which makes my tests fail in CI.

    The tl;dr is this: adbc_get_objects(depth="all").to_pylist() returns an a list of catalog dicts that, only on Windows, have an empty string where the key catalog_name key is supposed to be. Example catalog dict from the test output:

    {'': 'memory',
     'catalog_db_schemas': [{'db_schema_name': 'main',
       'db_schema_tables': [{'table_columns': [{Ellipsis}],
         'table_constraints': [{Ellipsis}],
         'table_name': 'getobjects',
         'table_type': 'BASE TABLE'}]}]}
    

    I'm expecting this:

    {'catalog_db_schemas': [{'db_schema_name': 'main',
        'db_schema_tables': [{'table_columns': [Ellipsis],
          'table_constraints': [Ellipsis],
          'table_name': 'getobjects',
          'table_type': 'BASE TABLE'}]}],
      'catalog_name': 'memory'}
    

    The tests run fine in CI on Windows and OSX, but they fail on Windows.

  7. evertlammerts commented on Sep 25, 2025

    @evertlammerts
    Member

    I'll merge the fix today, should be working again starting with the next 1.4.1 nightly (not the 1.5.0 nightly yet).

    There might be an unrelated issue with the adbc-driver-manager on Windows. I'll keep an eye on that, and if it turns out this is an issue on our end I'll fix it. In any case that is a different issue than this.

  8. added a commit that references this issue on Sep 25, 2025
    27b1d79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions