Spaces:
Sleeping
Sleeping
File size: 953 Bytes
ce48984 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/usr/bin/env python3
"""Deploy ATHENEA to Modal - workaround for encoding issues"""
import subprocess
import sys
# Run deploy and capture output
result = subprocess.run(
["modal", "deploy", "athenea_modal.py"],
cwd=r"D:\ATHENEAV2-Q6",
capture_output=True,
text=False # Binary mode to avoid encoding issues
)
# Print return code
print(f"Exit code: {result.returncode}")
# Try to decode with different encodings
for encoding in ['utf-8', 'latin-1', 'ascii', 'cp1252']:
try:
print(f"\n--- STDOUT ({encoding}) ---")
print(result.stdout.decode(encoding, errors='replace'))
break
except Exception as e:
print(f"Failed {encoding}: {e}")
for encoding in ['utf-8', 'latin-1', 'ascii', 'cp1252']:
try:
print(f"\n--- STDERR ({encoding}) ---")
print(result.stderr.decode(encoding, errors='replace'))
break
except Exception as e:
print(f"Failed {encoding}: {e}")
|