📚 Improved database structure & utils with new files for shm, wal, and enhanced debugging tools. 🆓
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user