PlanOpticon

fix(graph): correct FalkorDB Lite import and pin redis<7 for compatibility Use `from redislite import FalkorDB` (embedded) instead of `from falkordb import FalkorDB` (client SDK). Pin redis>=4.5,<7 to avoid UnixDomainSocketConnection.port bug in redis-py 7.x.

lmata 2026-02-21 03:37 trunk
Commit 0f9fbf6c6f25b4f388df0c6b195972d583d6620f7b8677df082d5490d501ba77
+1 -1
--- pyproject.toml
+++ pyproject.toml
@@ -54,11 +54,11 @@
5454
[project.optional-dependencies]
5555
pdf = ["weasyprint>=60.0"]
5656
gpu = ["torch>=2.0.0", "torchvision>=0.15.0"]
5757
gdrive = ["google-auth>=2.0.0", "google-auth-oauthlib>=1.0.0", "google-api-python-client>=2.0.0"]
5858
dropbox = ["dropbox>=12.0.0"]
59
-graph = ["falkordblite>=0.4.0"]
59
+graph = ["falkordblite>=0.4.0", "redis>=4.5,<7"]
6060
cloud = [
6161
"planopticon[gdrive]",
6262
"planopticon[dropbox]",
6363
]
6464
dev = [
6565
--- pyproject.toml
+++ pyproject.toml
@@ -54,11 +54,11 @@
54 [project.optional-dependencies]
55 pdf = ["weasyprint>=60.0"]
56 gpu = ["torch>=2.0.0", "torchvision>=0.15.0"]
57 gdrive = ["google-auth>=2.0.0", "google-auth-oauthlib>=1.0.0", "google-api-python-client>=2.0.0"]
58 dropbox = ["dropbox>=12.0.0"]
59 graph = ["falkordblite>=0.4.0"]
60 cloud = [
61 "planopticon[gdrive]",
62 "planopticon[dropbox]",
63 ]
64 dev = [
65
--- pyproject.toml
+++ pyproject.toml
@@ -54,11 +54,11 @@
54 [project.optional-dependencies]
55 pdf = ["weasyprint>=60.0"]
56 gpu = ["torch>=2.0.0", "torchvision>=0.15.0"]
57 gdrive = ["google-auth>=2.0.0", "google-auth-oauthlib>=1.0.0", "google-api-python-client>=2.0.0"]
58 dropbox = ["dropbox>=12.0.0"]
59 graph = ["falkordblite>=0.4.0", "redis>=4.5,<7"]
60 cloud = [
61 "planopticon[gdrive]",
62 "planopticon[dropbox]",
63 ]
64 dev = [
65
--- tests/test_graph_store.py
+++ tests/test_graph_store.py
@@ -156,11 +156,11 @@
156156
157157
158158
# Conditional FalkorDB tests
159159
_falkordb_available = False
160160
try:
161
- import falkordb # noqa: F401
161
+ import redislite # noqa: F401
162162
163163
_falkordb_available = True
164164
except ImportError:
165165
pass
166166
167167
--- tests/test_graph_store.py
+++ tests/test_graph_store.py
@@ -156,11 +156,11 @@
156
157
158 # Conditional FalkorDB tests
159 _falkordb_available = False
160 try:
161 import falkordb # noqa: F401
162
163 _falkordb_available = True
164 except ImportError:
165 pass
166
167
--- tests/test_graph_store.py
+++ tests/test_graph_store.py
@@ -156,11 +156,11 @@
156
157
158 # Conditional FalkorDB tests
159 _falkordb_available = False
160 try:
161 import redislite # noqa: F401
162
163 _falkordb_available = True
164 except ImportError:
165 pass
166
167
--- video_processor/integrators/graph_store.py
+++ video_processor/integrators/graph_store.py
@@ -171,11 +171,11 @@
171171
172172
class FalkorDBStore(GraphStore):
173173
"""FalkorDB Lite-backed graph store. Requires falkordblite package."""
174174
175175
def __init__(self, db_path: Union[str, Path]) -> None:
176
- from falkordb import FalkorDB
176
+ from redislite import FalkorDB
177177
178178
self._db_path = str(db_path)
179179
self._db = FalkorDB(self._db_path)
180180
self._graph = self._db.select_graph("knowledge")
181181
self._ensure_indexes()
182182
--- video_processor/integrators/graph_store.py
+++ video_processor/integrators/graph_store.py
@@ -171,11 +171,11 @@
171
172 class FalkorDBStore(GraphStore):
173 """FalkorDB Lite-backed graph store. Requires falkordblite package."""
174
175 def __init__(self, db_path: Union[str, Path]) -> None:
176 from falkordb import FalkorDB
177
178 self._db_path = str(db_path)
179 self._db = FalkorDB(self._db_path)
180 self._graph = self._db.select_graph("knowledge")
181 self._ensure_indexes()
182
--- video_processor/integrators/graph_store.py
+++ video_processor/integrators/graph_store.py
@@ -171,11 +171,11 @@
171
172 class FalkorDBStore(GraphStore):
173 """FalkorDB Lite-backed graph store. Requires falkordblite package."""
174
175 def __init__(self, db_path: Union[str, Path]) -> None:
176 from redislite import FalkorDB
177
178 self._db_path = str(db_path)
179 self._db = FalkorDB(self._db_path)
180 self._graph = self._db.select_graph("knowledge")
181 self._ensure_indexes()
182

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button