You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
record_audio(pymc3e)
File "C:\Users\localuser\Documents\GitHub\test-new\src\main\main_v5.py", line 236, in record_audio
stream = p.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\localuser\Documents\GitHub\test-new.venv\Lib\site-packages\pyaudio_init_.py", line 639, in open
stream = PyAudio.Stream(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\localuser\Documents\GitHub\test-new.venv\Lib\site-packages\pyaudio_init_.py", line 441, in init
self.stream = pa.open(**arguments)
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno -9999] Unanticipated host error
The text was updated successfully, but these errors were encountered:
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
record_audio(pymc3e)
File "C:\Users\localuser\Documents\GitHub\test-new\src\main\main_v5.py", line 236, in record_audio
stream = p.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\localuser\Documents\GitHub\test-new.venv\Lib\site-packages\pyaudio_init_.py", line 639, in open
stream = PyAudio.Stream(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\localuser\Documents\GitHub\test-new.venv\Lib\site-packages\pyaudio_init_.py", line 441, in init
self.stream = pa.open(**arguments)
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno -9999] Unanticipated host error
The text was updated successfully, but these errors were encountered: