Samplerbox in failed state

H
HansEhv posted Oct 24, 01:12:

Hello,
Samplerbox won't give any sounds or show my files on the USB-stick.
I can see a failde state, but no reason for that.
This is the info I have:

root@samplerbox:~/SamplerBox# systemctl status samplerbox -l
● samplerbox.service - Starts SamplerBox
Loaded: loaded (/etc/systemd/system/samplerbox.service; enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:10 UTC; 13min ago
Process: 73 ExecStart=/root/SamplerBox/samplerbox.sh (code=exited, status=1/FAILURE)
Main PID: 73 (code=exited, status=1/FAILURE)

Jan 01 00:00:10 samplerbox samplerbox.sh[73]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: Opened audio: sysdefault
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: Traceback (most recent call last):
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: File "/root/SamplerBox/samplerbox.py", line 377, in <module>
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: bus = smbus.SMBus(1) # using I2C
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: IOError: [Errno 2] No such file or directory
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: sys.excepthook is missing
Jan 01 00:00:10 samplerbox samplerbox.sh[73]: lost sys.stderr
Jan 01 00:00:10 samplerbox systemd[1]: samplerbox.service: main process exited, code=exited, status=1/FAILURE
Jan 01 00:00:10 samplerbox systemd[1]: Unit samplerbox.service entered failed state.
root@samplerbox:~/SamplerBox#

H
HansEhv posted Oct 26, 22:38:

Hi, found this one.
I had to change the defaults in samplerbox.py. They don't fit a plain raspberry, but expect a display, buttons etc :-) see below

AUDIO_DEVICE_ID = 2 # change this number to use another soundcard
SAMPLES_DIR = "/media/" # The root directory containing the sample-sets. Example: "/media/" to look for samples on a USB stick / SD card
USE_SERIALPORT_MIDI = True # Set to True to enable MIDI IN via SerialPort (e.g. RaspberryPi's GPIO UART pins)
USE_I2C_7SEGMENTDISPLAY = True # Set to True to use a 7-segment display via I2C
USE_BUTTONS = True # Set to True to use momentary buttons (connected to RaspberryPi's GPIO pins) to change preset
MAX_POLYPHONY = 80 # This can be set higher, but 80 is a safe value

...

  (not published)
  I want to post as guest
 

Post