python-sounddevice icon indicating copy to clipboard operation
python-sounddevice copied to clipboard

On the `windows` platform, `Exception` error messages in Python 3.8 or Python 3.9 will be suppressed

Open gbaian10 opened this issue 6 months ago • 1 comments

import sounddevice

1 / 0

As long as I am on the Windows platform and the Python version is lower than 3.10, when executing this code, the program will silently exit without printing any error messages in the terminal.

This issue does not occur on any python version of Linux, nor does it occur on Windows with Python 3.10 or above.

gbaian10 avatar May 19 '25 10:05 gbaian10

Thanks for reporting this.

I don't have access to a Windows system, so I tried it with GitHub Actions (https://github.com/mgeier/python-sounddevice/actions/runs/15259522483), but I couldn't reproduce the problem.

#61, #166 might be related?

Either way, Python 3.9 will be EOL soon.

But if anyone knows a simple solution, let me know, and we can still fix it until then.

mgeier avatar May 26 '25 17:05 mgeier