- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
52 lines
1.2 KiB
Python
Executable File
52 lines
1.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Script de vérification des imports pour rpa_vision_v3
|
|
"""
|
|
|
|
import sys
|
|
|
|
def test_imports():
|
|
"""Teste les imports principaux du projet"""
|
|
|
|
print("=" * 60)
|
|
print("VÉRIFICATION DES IMPORTS - RPA VISION V3")
|
|
print("=" * 60)
|
|
print()
|
|
|
|
errors = []
|
|
|
|
# Test 1: Import de raw_session
|
|
print("Test 1: Import de raw_session...")
|
|
try:
|
|
from core.models.raw_session import (
|
|
RawSession,
|
|
Event,
|
|
Screenshot,
|
|
WindowContext
|
|
)
|
|
print(" ✓ Import réussi: RawSession, Event, Screenshot, WindowContext")
|
|
except ImportError as e:
|
|
print(f" ✗ Échec: {e}")
|
|
errors.append(("raw_session", str(e)))
|
|
|
|
# Résumé
|
|
print()
|
|
print("=" * 60)
|
|
print("RÉSUMÉ")
|
|
print("=" * 60)
|
|
|
|
if not errors:
|
|
print("✓ Tous les imports fonctionnent correctement!")
|
|
return 0
|
|
else:
|
|
print(f"✗ {len(errors)} erreur(s) détectée(s)")
|
|
print()
|
|
print("SOLUTION: Installer le package en mode développement:")
|
|
print(" cd rpa_vision_v3")
|
|
print(" pip install -e .")
|
|
return 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(test_imports())
|