fix: upgrade chromadb to >=1.5.4 for python 3.13/3.14 compatibility
This commit is contained in:
@@ -4,10 +4,10 @@ import logging
|
|||||||
|
|
||||||
from .version import __version__ # noqa: E402
|
from .version import __version__ # noqa: E402
|
||||||
|
|
||||||
# ChromaDB 0.6.x ships a Posthog telemetry client whose capture() signature is
|
# chromadb telemetry: posthog capture() was broken in 0.6.x causing noisy stderr
|
||||||
# incompatible with the bundled posthog library, producing noisy stderr warnings
|
# warnings ("capture() takes 1 positional argument but 3 were given"). In 1.x the
|
||||||
# on every client operation ("Failed to send telemetry event … capture() takes
|
# posthog client is a no-op stub, so this is now harmless — kept as a guard in
|
||||||
# 1 positional argument but 3 were given"). Silence just that logger.
|
# case future chromadb versions re-introduce real telemetry calls.
|
||||||
logging.getLogger("chromadb.telemetry.product.posthog").setLevel(logging.CRITICAL)
|
logging.getLogger("chromadb.telemetry.product.posthog").setLevel(logging.CRITICAL)
|
||||||
|
|
||||||
# NOTE: the previous block set ``ORT_DISABLE_COREML=1`` on macOS arm64 as a
|
# NOTE: the previous block set ``ORT_DISABLE_COREML=1`` on macOS arm64 as a
|
||||||
|
|||||||
@@ -7,8 +7,10 @@ Reads documents and metadata directly from the palace's SQLite database
|
|||||||
then re-imports everything into a fresh palace using the currently installed
|
then re-imports everything into a fresh palace using the currently installed
|
||||||
ChromaDB version.
|
ChromaDB version.
|
||||||
|
|
||||||
This fixes the 3.0.0 → 3.1.0 upgrade path where chromadb was downgraded
|
Since mempalace 3.2.0 (chromadb>=1.5.4), chromadb automatically migrates
|
||||||
from 1.5.x to 0.6.x, breaking the on-disk storage format.
|
0.4.1+ databases on first open — no manual migration needed for upgrades.
|
||||||
|
Use this command only when downgrading chromadb (e.g. rolling back to an
|
||||||
|
older mempalace release) or if automatic migration fails.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
mempalace migrate # migrate default palace
|
mempalace migrate # migrate default palace
|
||||||
|
|||||||
+3
-1
@@ -21,11 +21,13 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Programming Language :: Python :: 3.14",
|
||||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chromadb>=0.5.0",
|
"chromadb>=1.5.4",
|
||||||
"pyyaml>=6.0,<7",
|
"pyyaml>=6.0,<7",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user