josephernest / SamplerBox

SamplerBox is a sampler musical instrument based on RaspberryPi.
https://www.samplerbox.org
422 stars 97 forks source link

ModuleNotFoundError: No module named 'sounddevice' #39

Closed sharonosahon closed 2 years ago

sharonosahon commented 4 years ago

Hi,

Trying this line of code on jupyter notebook:

import sounddevice as sd

Getting the following error:

ModuleNotFoundError: No module named 'sounddevice'

Have tried:

pip install sounddevice conda install -c conda-forge python-sounddevice brew install portaudio brew reinstall portaudio pip install setuptools --user pip install cffi --user sudo pip install rtmidi-python pyaudio cffi sounddevice pip install --upgrade pip python3 -m pip install sounddevice

Does anyone know what might be wrong? Thank you in advance!

sharonosahon commented 4 years ago

Have also just tried conda install -c conda-forge/label/gcc7 python-sounddevice conda install -c conda-forge/label/cf201901 python-sounddevice

but no luck

josephernest commented 2 years ago

@sharonosahon Thanks for your comment. SamplerBox is not really made to be used inside a Jupyter Notebook (well I have never tested, but it would be surprising :) ). Rather it should be started in script mode as a forever running process, for example in command line:

python samplerbox.py

Also custom config with Anaconda / conda is not really supported - everything is designed to run with the standard python.