File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,10 @@ def init_ui(app_instance):
144144 adjust_window_size (app_instance )
145145 center (app_instance )
146146
147+ # 내부 진단
148+ log_to_console (app_instance , check_cryptography ())
149+ log_to_console (app_instance , check_drivers ())
150+
147151
148152def adjust_window_size (app_instance ):
149153 """해상도에 따라 윈도우 크기를 조정하는 함수"""
@@ -181,3 +185,26 @@ def center(app_instance):
181185def log_to_console (app_instance , message : str ):
182186 """콘솔 창에 로그 메시지를 출력하는 함수"""
183187 app_instance .console_output .append (message )
188+
189+
190+ def check_cryptography () -> str :
191+ try :
192+ import cryptography
193+ from cryptography .hazmat .bindings import _rust
194+ return f"cryptography { cryptography .__version__ } (with _rust) OK"
195+ except Exception as e :
196+ return f"cryptography NG: { type (e ).__name__ } : { e } "
197+
198+
199+ def check_drivers ():
200+ try :
201+ import psycopg
202+ msg1 = f"psycopg { psycopg .__version__ } OK"
203+ except Exception as e :
204+ msg1 = f"psycopg NG: { type (e ).__name__ } : { e } "
205+ try :
206+ import oracledb
207+ msg2 = f"oracledb { oracledb .__version__ } OK"
208+ except Exception as e :
209+ msg2 = f"oracledb NG: { type (e ).__name__ } : { e } "
210+ return f"{ msg1 } | { msg2 } "
Original file line number Diff line number Diff line change 33SQLAlchemy
44oracledb
55psycopg [binary ]
6- pandas
6+ pandas
7+ cryptography
You can’t perform that action at this time.
0 commit comments