Skip to content

Commit ddf28fe

Browse files
authored
Merge pull request #3 from WoongyuChoi/dev
Dev
2 parents 06b8b6f + c47ff74 commit ddf28fe

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

data/DataShuttle.exe

3.75 MB
Binary file not shown.

data_shuttle/ui_setup.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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

148152
def adjust_window_size(app_instance):
149153
"""해상도에 따라 윈도우 크기를 조정하는 함수"""
@@ -181,3 +185,26 @@ def center(app_instance):
181185
def 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}"

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ PyQt5
33
SQLAlchemy
44
oracledb
55
psycopg[binary]
6-
pandas
6+
pandas
7+
cryptography

0 commit comments

Comments
 (0)