fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.6k stars 149 forks source link

Make a Snap package for SUSI Linux #74

Open betterclever opened 7 years ago

betterclever commented 7 years ago

Snaps are containerized Linux apps. Such apps have no external dependencies and everything is contained in one app. We can make such a Snap for SUSI Linux so that users do not neet to install anything. It will just one standalone snap.

Resources:

I have already started working on it.

betterclever commented 7 years ago

I prepared a Snap package for SUSI Linux, but faced an ALSA issues while running the app.

ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:0
ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:1
python3: src/hostapi/alsa/pa_linux_alsa.c:1454: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.

On futher investigation, I came to know that the ALSA is not working for Snap currently. A bug is filed in Launchpad: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1663029.

The Snap cannot be made to work till then.