-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_debug.py
More file actions
32 lines (27 loc) · 840 Bytes
/
Copy pathtest_debug.py
File metadata and controls
32 lines (27 loc) · 840 Bytes
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
import traceback
import sys
import os
# Ensure we can import backend
sys.path.append(os.getcwd())
print("--- DEBUG START ---")
print("1. Importing backend.scrapers...")
try:
import backend.scrapers
print("✅ backend.scrapers imported successfully")
except Exception:
print("❌ FAILED to import backend.scrapers")
traceback.print_exc()
print("\n2. Importing backend.brain...")
try:
import backend.brain
print("✅ backend.brain imported successfully")
except Exception:
print("❌ FAILED to import backend.brain")
traceback.print_exc()
print("\n3. Importing FinancialAnalyst from backend.brain...")
try:
from backend.brain import FinancialAnalyst
print("✅ FinancialAnalyst imported successfully")
except Exception:
print("❌ FAILED to import FinancialAnalyst")
traceback.print_exc()