-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdebug_config.py
More file actions
31 lines (26 loc) · 908 Bytes
/
debug_config.py
File metadata and controls
31 lines (26 loc) · 908 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
import sys
import os
print(f"Python executable: {sys.executable}")
print(f"Python version: {sys.version}")
print(f"Current working directory: {os.getcwd()}")
try:
import pydantic
print(f"Pydantic version: {pydantic.VERSION}")
print(f"Pydantic location: {pydantic.__file__}")
except ImportError as e:
print(f"Failed to import pydantic: {e}")
try:
sys.path.append(os.getcwd())
from src.config.config import ConfigManager
print("Successfully imported ConfigManager")
cm = ConfigManager()
print("Initialized ConfigManager")
config = cm.load_config()
print("Loaded config successfully")
print(f"Proxies enabled: {config.proxy.enabled}")
if config.proxy.proxies:
print(f"Loaded {len(config.proxy.proxies)} proxies")
except Exception as e:
print(f"Error during config testing: {e}")
import traceback
traceback.print_exc()