-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify_system.py
More file actions
67 lines (54 loc) · 1.83 KB
/
verify_system.py
File metadata and controls
67 lines (54 loc) · 1.83 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
import os
import sys
import time
print("🔍 Starting Nova System Verification...")
# 1. Environment Check
print(f"🐍 Python Version: {sys.version}")
print(f"📁 Workspace: {os.getcwd()}")
# 2. Dependency Check
requirements = [
"groq", "google.genai", "cv2", "serial", "sounddevice", "pynput", "numpy", "flask", "requests"
]
missing = []
for lib in requirements:
try:
__import__(lib)
print(f"✅ {lib} is installed.")
except ImportError as e:
print(f"❌ {lib} is MISSING: {e}")
missing.append(lib)
if missing:
print(f"\n🛑 Verification FAILED. Missing: {', '.join(missing)}")
sys.exit(1)
# 3. Model Configuration Check
import config
print("\n⚙️ Model Configuration:")
print(f" MAIN_MODEL: {config.MAIN_MODEL}")
print(f" SEARCH_MODEL: {config.SEARCH_MODEL}")
print(f" VISION_MODEL: {config.VISION_MODEL}")
print(f" MEMORY_MODEL: {config.MEMORY_MODEL}")
# 4. Initialization Test (Dry Run)
print("\n🧪 Attempting basic module initialization (Dry Run)...")
try:
import novaresponse
import novatts
import novastt
import novafacetrack
# Check if we can initialize the response system (uses ChromaDB)
print(" Initializing response system (ChromaDB)...")
mem = novaresponse.NovaMemory()
print(" ✅ Memory system initialized.")
# Mocking hardware for dry run
print(" Checking Animatronic (novatts) initialization...")
robot = novatts.Animatronic()
# We won't call robot.initialise() because it starts background threads
# and might hang on pynput listener without X11.
print(" ✅ Animatronic module loaded.")
print("\n🎉 ALL SOFTWARE CHECKS PASSED!")
except Exception:
import traceback
print("\n❌ Initialization error:")
traceback.print_exc()
sys.exit(1)
sys.exit(0)