python-sounddevice
python-sounddevice copied to clipboard
WDM-KS is broken on Windows 10 via VMware
I tried pip install sounddevice then importing it, on 64 bit windows with 64 bit python - and it wasn't happy..
C:\Users\stu\Desktop\planar>python
Python 2.7.10rc1 (default, May 10 2015, 18:50:04) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sounddevice
Assertion failed!
Program: C:\Python27\python.exe
File: src/hostapi/wdmks/pa_win_wdmks.c, Line 1035
Expression: FALSE
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I was using Jupyter Notebook in Anaconda (python 3.8.5) on Win 10 64 bit. I had exactly the same error after I ran '!pip install sounddevice' in an .ipynb file. I fixed it by:
- Shut down jupyter notebook and open anaconda prompt (anaconda3)
- Run 'pip uninstall sounddevice' (until it successfully uninstalled)
- Run 'conda install -c conda-forge python-sounddevice' (until it successfully install)
- Open jupyter notebook again. Run 'import sounddevice' and it FINALLY works perfectly!!! Might not be exactly the same environment but hope my solution can help!