josephernest / SamplerBox

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

Not Working - "ImportError: No module named sounddevice" #30

Closed bkleeman closed 5 years ago

bkleeman commented 6 years ago

Hey y'all,

I'm having some trouble getting SamplerBox to work on my Raspberry Pi 3, running Raspbian. I am using an Arturia MiniLab Mk II, connected to the Pi via USB. I did not build the circuit or the enclosure - I am just trying to use the software for the time being.

I followed the instructions from the README under the Install section by pasting each line into the terminal on my Pi.

After the line sudo pip install rtmidi-python pyaudio cffi sounddevice, a couple .tar.gz files were successfully downloaded, but then it said "collecting cffi" and then in red listed lines and lines of exceptions. At the end of that output, it says, again in red TypeError: unsupported operand type(s) for -=: 'Retry' and 'int

The next command seemed to go successfully.

After entering python samplerbox.py, I receive this output: Traceback (most recent call last): File "samplerbox.py", line 35, in <module> import sounddevice ImportError: No module named sounddevice I'm not sure if I followed the instructions incorrectly, or what the problem might be. I'm a total newbie to Raspberry Pi and the Linux ecosystem, so I wouldn't be surprised if I made a mistake that would be obvious to folks with more experience. Any help is greatly appreciated!

Thanks for making awesome software!

dkadrios commented 5 years ago

Any update on this? I'm running into exactly the same issue on Pi 3 and Raspbian

josephernest commented 5 years ago

You probably need to install https://pypi.org/project/sounddevice/ with: pip install sounddevice

dkadrios commented 5 years ago

I hadn't tried installing the prerequisites individually, just all at once per the readme sudo pip install rtmidi-python pyaudio cffi sounddevice

I started fresh yesterday with the latest raspbian and it's working fine now (of course) 🙄

josephernest commented 5 years ago

Cool :)

skistaddy commented 5 years ago

Can confirm, running sudo pip install rtmidi-python pyaudio cffi sounddevice fixes problem.