Repository navigation
Closed
Milestone
Description
I just installed the mysql driver with dbc 0.0.1-pre3 on macOS and the driver manfiest was incorrect. This made it so the Python driver manager failed to load the driver. This happened with the mysql driver but it may apply to more drivers.
Here's the invalid manifest dbc created, note that Driver.shared is a folder not a dylib as it should be.
manifest_version = 1
name = 'ADBC Driver Foundry Driver for MySQL'
publisher = 'ADBC Drivers Contributors'
license = 'Apache-2.0'
version = '0.1.0'
source = 'dbc'
[ADBC]
version = '1.1.0'
[Driver]
[Driver.shared]
macos_arm64 = '/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0'Here are my steps to reproduce:
$ curl -LsSf https://dbc.columnar.tech/install.sh | sh
Downloading dbc (latest) for aarch64-apple-darwin
Installing to /Users/bryce/.local/bin:
+ dbc
Successfully installed dbc!
~/my-adbc-project
$ dbc install mysql
[✓] searching
[✓] downloading
[✓] installing
[✓] verifying signature
Installed mysql 0.1.0 to /Users/bryce/Library/Application Support/ADBC/Drivers
~/my-adbc-project
$ python3 -m venv .venv
~/my-adbc-project
$ source .venv/bin/activate.fish
~/my-adbc-project
.venv $ pip install adbc_driver_manager
Collecting adbc_driver_manager
Downloading adbc_driver_manager-1.8.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (3.3 kB)
Collecting typing-extensions (from adbc_driver_manager)
Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Downloading adbc_driver_manager-1.8.0-cp313-cp313-macosx_11_0_arm64.whl (510 kB)
Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Installing collected packages: typing-extensions, adbc_driver_manager
Successfully installed adbc_driver_manager-1.8.0 typing-extensions-4.15.0
~/my-adbc-project
.venv $ python
Python 3.13.7 (main, Aug 14 2025, 11:12:11) [Clang 17.0.0 (clang-1700.0.13.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from adbc_driver_manager import dbapi
>>> con = dbapi.connect(driver="mysql")
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
con = dbapi.connect(driver="mysql")
File "/Users/bryce/my-adbc-project/.venv/lib/python3.13/site-packages/adbc_driver_manager/dbapi.py", line 227, in connect
db = _lib.AdbcDatabase(**db_kwargs)
File "adbc_driver_manager/_lib.pyx", line 582, in adbc_driver_manager._lib.AdbcDatabase.__init__
File "adbc_driver_manager/_lib.pyx", line 261, in adbc_driver_manager._lib.check_error
adbc_driver_manager.ProgrammingError: NOT_FOUND: [Driver Manager] dlopen() failed: dlopen(mysql, 0x0006): tried: 'mysql' (no such file), '/System/Volumes/Preboot/Cryptexes/OSmysql' (no such file), '/opt/homebrew/lib/mysql' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/mysql' (no such file), '/usr/lib/mysql' (no such file, not in dyld cache), 'mysql' (no such file)
dlopen() failed: dlopen(libmysql.dylib, 0x0006): tried: 'libmysql.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibmysql.dylib' (no such file), '/opt/homebrew/lib/libmysql.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libmysql.dylib' (no such file), '/usr/lib/libmysql.dylib' (no such file, not in dyld cache), 'libmysql.dylib' (no such file)
Also searched these paths for manifests:
not set: ADBC_DRIVER_PATH
additional search path: /Users/bryce/my-adbc-project/.venv/etc/adbc
not enabled at build time: Conda prefix
user config dir: /Users/bryce/Library/Application Support/ADBC/Drivers
system config dir: /Library/Application Support/ADBC/Drivers
found /Users/bryce/Library/Application Support/ADBC/Drivers/mysql.toml but: [Driver Manager] dlopen() failed: dlopen(/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0, 0x0006): tried: '/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0' (not a file), '/System/Volumes/Preboot/Cryptexes/OS/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0' (no such file), '/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0' (not a file)
dlopen() failed: dlopen(lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib, 0x0006): tried: 'lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file), '/opt/homebrew/lib/lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file), '/usr/lib/lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file, not in dyld cache), 'lib/Users/bryce/Library/Application Support/ADBC/Drivers/mysql_macos_arm64_v0.1.0.dylib' (no such file)
>>>
Activity
zeroshade commentedon Sep 16, 2025
Looks like the issue is that the bundled
MANIFESTin the tarball has[Driver.shared]instead ofFiles.driverandFiles.signature, that's why it's populating incorrectly.lidavidm commentedon Sep 16, 2025
adbc-drivers/dev#74
amoeba commentedon Sep 17, 2025
This looks fixed, thanks for the quick fix!