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

WDM-KS is broken on Windows 10 via VMware

Open stuaxo opened this issue 11 years ago • 41 comments

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.

stuaxo avatar Oct 11 '15 08:10 stuaxo

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:

  1. Shut down jupyter notebook and open anaconda prompt (anaconda3)
  2. Run 'pip uninstall sounddevice' (until it successfully uninstalled)
  3. Run 'conda install -c conda-forge python-sounddevice' (until it successfully install)
  4. 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!

sypei avatar Apr 21 '21 05:04 sypei