MycroftAI / snapcraft-mycroft-core

This project is for building mycroft-core snaps
MIT License
13 stars 11 forks source link

Running snap beta fail after installation #29

Open guyluz11 opened 2 years ago

guyluz11 commented 2 years ago

Running snap fail after installation

Describe the bug I have installed Mycroft from the snap store and it crashed on lunch.

To Reproduce Steps to reproduce the behavior:

  1. Run command sudo snap install mycroft --beta
  2. Run command sudo snap connect mycroft:mount-observe
  3. Run the command mycroft

Expected behavior Mycroft does not crash

Log files From command line

:~$ mycroft 

(yad:42321): dbind-WARNING **: 15:52:17.994: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OJmkldw27F: No such file or directory

(yad:42321): Gtk-WARNING **: 15:52:18.491: Theme parsing error: gtk.css:3456:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 15:52:18.518: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:52:18.522: Failed to load module "window-decorations-gtk-module"
Creating virtualenv in /home/zrho/snap/mycroft/common/venv

(yad:42337): dbind-WARNING **: 15:52:23.177: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OJmkldw27F: No such file or directory

(yad:42337): Gtk-WARNING **: 15:52:23.184: Theme parsing error: gtk.css:3456:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 15:52:23.196: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:52:23.196: Failed to load module "window-decorations-gtk-module"

(yad:42343): dbind-WARNING **: 15:52:24.985: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OJmkldw27F: No such file or directory

(yad:42343): Gtk-WARNING **: 15:52:24.995: Theme parsing error: gtk.css:3456:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 15:52:25.008: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:52:25.008: Failed to load module "window-decorations-gtk-module"
sed: can't read /home/zrho/snap/mycroft/common/venv/lib/python3.?/site-packages/pip/_internal/utils/misc.py: No such file or directory
/snap/mycroft/1078/bin/mycroft-launch: line 69: pip: command not found

(yad:42347): dbind-WARNING **: 15:52:25.080: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OJmkldw27F: No such file or directory

(yad:42347): Gtk-WARNING **: 15:52:25.088: Theme parsing error: gtk.css:3456:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 15:52:25.102: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:52:25.102: Failed to load module "window-decorations-gtk-module"

(yad:42347): GLib-CRITICAL **: 15:52:25.154: g_source_remove: assertion 'tag > 0' failed
/snap/mycroft/1078/bin/mycroft-launch: line 92: mycroft-cli-client: command not found
Stopping all processes...
mycroft-skills: no process found
mycroft-enclosure-client: no process found
mycroft-speech-client: no process found
mycroft-audio: no process found
Stopped

/var/log/mycroft/ folder does not exist so no logs.

Environment (please complete the following information):


**Additional context**
Running the command `mycroft` for the second time only outputs the last part from the output of the first time. 

:~$ mycroft /snap/mycroft/1078/bin/mycroft-launch: line 92: mycroft-cli-client: command not found Stopping all processes... mycroft-skills: no process found mycroft-enclosure-client: no process found mycroft-speech-client: no process found mycroft-audio: no process found Stopped

krisgesling commented 2 years ago

Hey there,

We never got over some of the hurdles in releasing the Snap package. Once we have the Mark II shipping we will be looking again at what the priority platforms for support are. In the meantime I've removed the Snap package from the store.

If anyone is a keen snapcrafter then we're happy to take PR's to get it going again. But until we iron out the bugs, it only serves to frustrate people trying to install it this way.

For now I'd recommend doing a git install: https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/get-mycroft/linux#installing-via-git-clone

Thanks

guyluz11 commented 2 years ago

Hmmm does it work on other computers?.

I have followed the instructions from here https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/get-mycroft/linux#installing-via-git-clone And Mycroft does crash on lunch (a little bit different), so maybe the problem wasn't the snap and it will be a bad decision to remove it from everyone.

I will open a new issue for that to be organized.