import sys
if hasattr(sys.stdout, 'reconfigure'):
    sys.stdout.reconfigure(encoding='utf-8')
if hasattr(sys.stderr, 'reconfigure'):
    sys.stderr.reconfigure(encoding='utf-8')
try:
    import psycopg2, redis, qdrant_client, neo4j
    print("✅ All libraries imported successfully.")
    r = redis.Redis(host="localhost", port=6379)
    print(f"✅ Redis connected: {r.ping()}")
    print("🚀 System is ready to run orchestrator.py")
except Exception as e:
    print(f"❌ Error: {e}")
    sys.exit(1)
