Full driver path needed in molab

Đang mở
#201 5 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go, python
Lĩnh vực
cli, databases

Hướng nghiên cứu

The report identifies dbc install duckdb and the adbc_driver_manager.dbapi.connect call, but names no repository files or tests. Start by tracing where dbc installs drivers and how it exposes their location to the driver manager; reproduce the molab example and inspect the comment thread for expected behavior. Done means the reported setup can connect without requiring the user to supply the full driver path.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When using dbc in molab (a cloud-hosted marimo notebook workspace), dbc installs drivers to /tmp/uv-venv/etc/adbc/drivers, while adbc_driver_manager looks for drivers in /etc/adbc/drivers.

Here is a code example:

import subprocess

subprocess.run(["dbc", "install", "duckdb"])
Installed duckdb 1.4.0 to /tmp/uv-venv/etc/adbc/drivers
from adbc_driver_manager import dbapi

con = dbapi.connect(driver="duckdb")
Traceback (most recent call last):
  File "/tmp/marimo_73/__marimo__cell_Hbol_.py", line 3, in <module>
    con = dbapi.connect(driver="duckdb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/uv-venv/lib/python3.12/site-packages/adbc_driver_manager/dbapi.py", line 251, in connect
    db = _lib.AdbcDatabase(**db_kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "adbc_driver_manager/_lib.pyx", line 605, in adbc_driver_manager._lib.AdbcDatabase.__init__
  File "adbc_driver_manager/_lib.pyx", line 262, in adbc_driver_manager._lib.check_error
adbc_driver_manager.ProgrammingError: NOT_FOUND: [Driver Manager] dlopen() failed: duckdb: cannot open shared object file: No such file or directory
dlopen() failed: libduckdb.so: cannot open shared object file: No such file or directory
Also searched these paths for manifests:
	not set: ADBC_DRIVER_PATH
	not enabled at build time: Conda prefix
	does not exist: /root/.config/adbc/drivers
	does not exist: /etc/adbc/drivers

To get the connection to work, the full path must be given:

con = dbapi.connect(driver="/tmp/uv-venv/etc/adbc/drivers/duckdb")

It would be great if providing the full path was not needed.

Ngôn ngữ chính
Go
Star
154
Fork
15
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của columnar-tech/dbc

Tất cả issue của columnar-tech/dbc

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.