Pin `duckdb<=0.9.2` to avoid 0.10.0 errors (#8181)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/8174/head^2
Ayush Chaurasia 9 months ago committed by GitHub
parent 78f7e475fa
commit 79e0d59eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pyproject.toml
  2. 3
      ultralytics/data/explorer/explorer.py

@ -104,12 +104,11 @@ export = [
] ]
explorer = [ explorer = [
"lancedb", # vector search "lancedb", # vector search
"duckdb", # SQL queries, supports lancedb tables "duckdb<=0.9.2", # SQL queries, duckdb==0.10.0 bug https://github.com/ultralytics/ultralytics/pull/8181
"streamlit", # visualizing with GUI "streamlit", # visualizing with GUI
] ]
# tensorflow>=2.4.1,<=2.13.1 # TF exports (-cpu, -aarch64, -macos) # tensorflow>=2.4.1,<=2.13.1 # TF exports (-cpu, -aarch64, -macos)
# tflite-support # for TFLite model metadata # tflite-support # for TFLite model metadata
# scikit-learn==0.19.2 # CoreML quantization
# nvidia-pyindex # TensorRT export # nvidia-pyindex # TensorRT export
# nvidia-tensorrt # TensorRT export # nvidia-tensorrt # TensorRT export
logging = [ logging = [

@ -59,7 +59,8 @@ class Explorer:
model: str = "yolov8n.pt", model: str = "yolov8n.pt",
uri: str = USER_CONFIG_DIR / "explorer", uri: str = USER_CONFIG_DIR / "explorer",
) -> None: ) -> None:
checks.check_requirements(["lancedb>=0.4.3", "duckdb"]) # Note duckdb==0.10.0 bug https://github.com/ultralytics/ultralytics/pull/8181
checks.check_requirements(["lancedb>=0.4.3", "duckdb<=0.9.2"])
import lancedb import lancedb
self.connection = lancedb.connect(uri) self.connection = lancedb.connect(uri)

Loading…
Cancel
Save