📚 Improved database structure & utils with new files for shm, wal, and enhanced debugging tools. 🆓

This commit is contained in:
2025-05-31 18:17:58 +02:00
parent 34692dbb32
commit d3f7d66112
10 changed files with 163 additions and 34 deletions

View File

@@ -93,7 +93,8 @@ def get_current_versions() -> Dict[str, str]:
try:
result = subprocess.run(['pip', 'list', '--format=freeze'],
capture_output=True, text=True)
capture_output=True, text=True,
encoding='utf-8', errors='replace')
for line in result.stdout.strip().split('\n'):
if '==' in line:
@@ -113,7 +114,8 @@ def check_package_availability(package: str, version: str = None) -> bool:
else:
cmd = ['pip', 'show', package]
result = subprocess.run(cmd, capture_output=True, text=True)
result = subprocess.run(cmd, capture_output=True, text=True,
encoding='utf-8', errors='replace')
return result.returncode == 0
except Exception: