OSError: [Errno -9999] Unanticipated host error when running the program on command line
i got this error when i try to run my program via CMD command line. the program works well in VScode python debugger.
this is my command line for CMD: C:\Users\localuser\Documents\GitHub\test-new>C:\Users\localuser\Documents\GitHub\test-new.venv\Scripts\python.exe C:\Users\localuser\Documents\GitHub\test-new\src\main\main_v5.py
and this is my vscode debug command line: PS C:\Users\localuser\Documents\GitHub\test-new> c:; cd 'c:\Users\localuser\Documents\GitHub\test-new'; & 'c:\Users\localuser\Documents\GitHub\test-new.venv\Scripts\python.exe' 'c:\Users\localuser.vscode\extensions\ms-python.debugpy-2025.0.0-win32-x64\bundled\libs\debugpy\launcher' '52858' '--' 'C:\Users\localuser\Documents\GitHub\test-new\src\main\main_v5.py'
VScode debugger can run the program perfectly. here the result: PROGRAM START TEST
Connection success.
and here the result when i try to run the progam on cmd: PROGRAM START TEST
Connection success.
Traceback (most recent call last):
File "C:\Users\localuser\Documents\GitHub\test-new\src\main\main_v5.py", line 290, in