-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_dependencies.py
More file actions
44 lines (38 loc) · 949 Bytes
/
debug_dependencies.py
File metadata and controls
44 lines (38 loc) · 949 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
33
34
35
36
37
38
39
40
41
42
43
44
import sys
print(f"Python: {sys.version}")
print("1. Importing pydantic...")
try:
import pydantic
print(f" Pydantic: {pydantic.VERSION}")
except Exception as e:
print(f" Failed: {e}")
print("2. Importing fastapi...")
try:
import fastapi
print(" FastAPI imported")
except Exception as e:
print(f" Failed: {e}")
print("3. Importing sqlalchemy...")
try:
import sqlalchemy
print(f" SQLAlchemy: {sqlalchemy.__version__}")
except Exception as e:
print(f" Failed: {e}")
print("4. Importing bcrypt...")
try:
import bcrypt
print(" bcrypt imported")
except Exception as e:
print(f" Failed: {e}")
print("5. Importing passlib...")
try:
import passlib
print(" passlib imported")
except Exception as e:
print(f" Failed: {e}")
print("6. Importing websockets...")
try:
import websockets
print(" websockets imported")
except Exception as e:
print(f" Failed: {e}")