thoth-dbmanager 0.4.7__py3-none-any.whl → 0.4.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,12 @@ class LshManager:
98
98
  """
99
99
  try:
100
100
  if not self.storage_strategy.exists(self.lsh_base_path):
101
- logging.warning(f"LSH files not found at {self.lsh_base_path}")
101
+ # Show the actual file paths being checked for better debugging
102
+ lsh_file = self.lsh_base_path.with_suffix('.pkl')
103
+ minhashes_file = self.lsh_base_path.parent / f"{self.lsh_base_path.stem}_minhashes.pkl"
104
+ logging.warning(f"LSH files not found. Expected files:")
105
+ logging.warning(f" LSH file: {lsh_file}")
106
+ logging.warning(f" Minhashes file: {minhashes_file}")
102
107
  return False
103
108
 
104
109
  lsh_data, minhashes_data = self.storage_strategy.load(self.lsh_base_path)
@@ -92,5 +92,19 @@ class PickleStorage(LshStorageStrategy):
92
92
  """Check if both LSH and minhashes pickle files exist."""
93
93
  lsh_path = base_path.with_suffix('.pkl')
94
94
  minhashes_path = base_path.parent / f"{base_path.stem}_minhashes.pkl"
95
-
96
- return lsh_path.exists() and minhashes_path.exists()
95
+
96
+ # Add debug logging to help diagnose path issues
97
+ import logging
98
+ logger = logging.getLogger(__name__)
99
+ logger.debug(f"Checking LSH files existence:")
100
+ logger.debug(f" Base path: {base_path}")
101
+ logger.debug(f" LSH path: {lsh_path} (exists: {lsh_path.exists()})")
102
+ logger.debug(f" Minhashes path: {minhashes_path} (exists: {minhashes_path.exists()})")
103
+
104
+ lsh_exists = lsh_path.exists()
105
+ minhashes_exists = minhashes_path.exists()
106
+
107
+ if not lsh_exists or not minhashes_exists:
108
+ logger.warning(f"LSH files missing - LSH: {lsh_path} (exists: {lsh_exists}), Minhashes: {minhashes_path} (exists: {minhashes_exists})")
109
+
110
+ return lsh_exists and minhashes_exists
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thoth_dbmanager
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: A Python library for managing SQL databases with support for multiple database types, LSH-based similarity search, and a modern plugin architecture.
5
5
  Author-email: Marco Pancotti <mp@tylconsulting.it>
6
6
  Project-URL: Homepage, https://github.com/mptyl/thoth_dbmanager
@@ -22,8 +22,8 @@ thoth_dbmanager/helpers/search.py,sha256=k04L7clSPfeQOlq_ifsH3PZ21ZK-rujh_Qy4hWr
22
22
  thoth_dbmanager/lsh/__init__.py,sha256=zAUTRuRX4MNc2nU93tTBkT2_IVL7OBkBL0WZPPgO3Ec,555
23
23
  thoth_dbmanager/lsh/core.py,sha256=171FqHW7ItAqAPk6g_AoayKTE3Bs1rRZxnt55MJVzjY,6813
24
24
  thoth_dbmanager/lsh/factory.py,sha256=2Bpkk-OygjaptZAw1yysxO1cxG3QTxmJ1yFGcXHqX3w,2411
25
- thoth_dbmanager/lsh/manager.py,sha256=NDKU2re6Xp7cU6pB5EtucZqQgPiT5nyugoUCCIAG29s,5777
26
- thoth_dbmanager/lsh/storage.py,sha256=Wp1fjVBVE3inRFTAZCxlc6vwZdlKDwY7wCfwfu7P5Xw,3085
25
+ thoth_dbmanager/lsh/manager.py,sha256=tdTY4X3Hu7gOFd-iNCT410Fg-wIZ-XdzBu5YzZ9nehA,6150
26
+ thoth_dbmanager/lsh/storage.py,sha256=9n-2qoHaqJ87SnZtKY58dUFhGDIIXGj5ydkKTX-rWfk,3759
27
27
  thoth_dbmanager/plugins/__init__.py,sha256=98iKwNiKnFFeJfw0qLGVOrP2Mo2wGPAolsx7R2B3emA,592
28
28
  thoth_dbmanager/plugins/mariadb.py,sha256=ElYa4Rexwrofcjcs0UQKan8fZpbU6-n9zghYR9SgRb4,17975
29
29
  thoth_dbmanager/plugins/mysql.py,sha256=mbDsIDV2H_BWYANU4JHMsUkxLQICuGtjKTTPbig2Ngs,16546
@@ -32,8 +32,8 @@ thoth_dbmanager/plugins/postgresql.py,sha256=pI1W9oHpQty8tHMoEDcsOT-Msv6S4aoFcAr
32
32
  thoth_dbmanager/plugins/sqlite.py,sha256=iMlOH4XMEY-Ac3yrs1HzjKaR4km1DxLDwAEjGZzM0Cc,6504
33
33
  thoth_dbmanager/plugins/sqlserver.py,sha256=mMb3F5FmSWV02FZwj-Ult-2TjuyeVA4Fl1iME1dbgLU,5289
34
34
  thoth_dbmanager/plugins/supabase.py,sha256=mWlaGAdpywx4-pU4Ffpmn24ze8sg0sM5kc6bFDoeYRg,8645
35
- thoth_dbmanager-0.4.7.dist-info/licenses/LICENSE,sha256=81-BOzGgwtY1XdYfkwMQB87AkOGXI9OMq0kjNcZA4UE,1071
36
- thoth_dbmanager-0.4.7.dist-info/METADATA,sha256=koLm6fBoM2uMRWQSg0t9ncSN-kWbUwZw2BnCa4jYVhI,12246
37
- thoth_dbmanager-0.4.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- thoth_dbmanager-0.4.7.dist-info/top_level.txt,sha256=b9ttxm9RUc0KUCASEKRx6FqoREYJ1-KZWSpNuaM0uQ4,16
39
- thoth_dbmanager-0.4.7.dist-info/RECORD,,
35
+ thoth_dbmanager-0.4.8.dist-info/licenses/LICENSE,sha256=81-BOzGgwtY1XdYfkwMQB87AkOGXI9OMq0kjNcZA4UE,1071
36
+ thoth_dbmanager-0.4.8.dist-info/METADATA,sha256=3KNrltdL1_d6l1Jd8Y4WBYgIUCESLgfx_5f3PGqgbnc,12246
37
+ thoth_dbmanager-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ thoth_dbmanager-0.4.8.dist-info/top_level.txt,sha256=b9ttxm9RUc0KUCASEKRx6FqoREYJ1-KZWSpNuaM0uQ4,16
39
+ thoth_dbmanager-0.4.8.dist-info/RECORD,,