Singtel_Use_Case1 / test_setup.py
cosmoruler
first draft
5269c7e
import sys
import os
print("Python version:", sys.version)
print("Current directory:", os.getcwd())
try:
import pandas as pd
print("βœ… Pandas imported successfully")
except ImportError as e:
print("❌ Pandas import failed:", e)
try:
import smolagents
print("βœ… SmoLagents imported successfully")
except ImportError as e:
print("❌ SmoLagents import failed:", e)
try:
import gradio as gr
print("βœ… Gradio imported successfully")
except ImportError as e:
print("❌ Gradio import failed:", e)
# Check if CSV file exists
csv_path = "C:/Users/Cosmo/Desktop/NTU Peak Singtel/outsystems_sample_logs_6months.csv"
if os.path.exists(csv_path):
print(f"βœ… CSV file found at: {csv_path}")
try:
df = pd.read_csv(csv_path)
print(f"βœ… CSV loaded successfully. Shape: {df.shape}")
print(f"Columns: {list(df.columns)}")
except Exception as e:
print(f"❌ Error loading CSV: {e}")
else:
print(f"❌ CSV file not found at: {csv_path}")
print("Please check the file path and ensure the file exists.")
print("\nπŸš€ Setup verification complete!")