Pip command not found

When I try to install skills on Picroft using msm, I am seeing;
"pip command not found… blah… blah… "
This was a fresh install from the site. but I have since done a “apt-get upgrade”
How to I fix this?

Just to confirm @a_user, when you say this was a fresh install from the site, do you mean that you downloaded the Picroft disk image, burned that to a Micro SD card then put that in an RPi 3?

Hi Kathy
Yes I downloaded the zip , unzipped it and then used etcher to write it to the sd card, which I then inserted into my brand new Pi 3 :slight_smile:

I have now actually used apt-get to install python-pip after the magic interwebs said that was the solution… at least the error now goes away, but the skill still dosen’t work ( Subsonic-media)

Thanks for the update a_user - are you able to provide your mycroft-skills.log file and I can take a look at why subsonic-media isn’t working?

Yep… It is 7 Mb though… How can I get it to you here? I can call it a jpg :slight_smile:

hahahah. Any chance you can grep it for subsonic?
That should reduce the file size.

here is the last bit… I tried the utterance “play kate bush” whicgh should have triggered it , but didn’t
16:58:10.337 - SKILLS - DEBUG - {“type”: “skill-date-time:TimeSkillupdate_display”, “context”: null, “data”: {}}
16:58:12.600 - SKILLS - DEBUG - {“type”: “recognizer_loop:record_end”, “data”: {}, “context”: null}
16:58:12.611 - SKILLS - DEBUG - {“type”: “recognizer_loop:wakeword”, “data”: {“utterance”: “andromeda”, “session”: “d94a1f13-2dbc-4db9-ac30-b3bcda677319”}, “context”: null}
16:58:20.349 - SKILLS - DEBUG - {“type”: “skill-date-time:TimeSkillupdate_display”, “context”: null, “data”: {}}
16:58:23.271 - SKILLS - DEBUG - {“type”: “recognizer_loop:utterance”, “data”: {“session”: “d94a1f13-2dbc-4db9-ac30-b3bcda677319”, “utterances”: [“play kate bush”], “lang”: “en-US”}, “context”: {“client_name”: “mycroft_listener”, “ident”: “1529341092.5959131988041937”}}
16:58:23.285 - mycroft.skills.intent_service:send_metrics:247 - DEBUG - Sending metric if opt_in is enabled
16:58:23.289 - SKILLS - DEBUG - {“type”: “intent_failure”, “context”: {“ident”: “1529341092.5959131988041937”, “client_name”: “mycroft_listener”}, “data”: {“utterance”: “play kate bush”, “lang”: “en-US”}}
16:58:23.294 - mycroft.skills.padatious_service:handle_fallback:110 - DEBUG - Padatious fallback attempt: play kate bush
16:58:23.306 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: play kate bush
16:58:23.307 - WolframAlphaSkill - DEBUG - Non-question, ignoring: play kate bush
16:58:23.308 - SKILLS - DEBUG - {“type”: “mycroft.skill.handler.start”, “context”: {“ident”: “1529341092.5959131988041937”, “client_name”: “mycroft_listener”}, “data”: {“handler”: “fallback”}}
16:58:23.313 - fallback-aiml:load_brain:51 - INFO - Loading Brain
Loading brain from /home/mycroft/.mycroft/skills/AimlFallback/bot_brain.brn…16:58:28.863 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:29.605 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/setting HTTP/1.1” 304 0
16:58:29.793 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/setting
16:58:29.815 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:30.433 - SKILLS - DEBUG - {“type”: “skill-date-time:TimeSkillupdate_display”, “context”: null, “data”: {}}
16:58:30.548 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/location HTTP/1.1” 304 0
16:58:30.572 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/location
16:58:33.587 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for SkillInstallerSkill
16:58:33.594 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for WeatherSkill
16:58:33.606 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:33.608 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:33.608 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for TimeSkill
16:58:33.618 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for NewsSkill
16:58:33.623 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:33.631 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:34.357 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill HTTP/1.1” 304 0
16:58:34.360 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill HTTP/1.1” 304 0
16:58:34.378 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill HTTP/1.1” 304 0
16:58:34.441 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill
16:58:34.453 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill
16:58:34.460 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill
16:58:34.517 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill HTTP/1.1” 304 0
16:58:34.592 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill
done (56310 categories in 12.42 seconds)
16:58:35.284 - mycroft.skills.core:handler:1139 - ERROR - Exception in fallback.
Traceback (most recent call last):
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py”, line 1130, in handler
if handler(message):
File “/opt/mycroft/skills/fallback-aiml/init.py”, line 111, in handle_fallback
self.load_brain()
File “/opt/mycroft/skills/fallback-aiml/init.py”, line 53, in load_brain
self.kernel.bootstrap(brainFile=self.brain_path)
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/aiml/Kernel.py”, line 136, in bootstrap
prev = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
16:58:35.302 - SKILLS - DEBUG - {“type”: “speak”, “context”: {“ident”: “1529341092.5959131988041937”, “client_name”: “mycroft_listener”}, “data”: {“utterance”: “I don’t understand, but I’m learning new things everyday.”, “expect_response”: false}}
16:58:35.316 - SKILLS - DEBUG - {“type”: “mycroft.skill.handler.complete”, “context”: {“ident”: “1529341092.5959131988041937”, “client_name”: “mycroft_listener”}, “data”: {“fallback_handler”: “UnknownSkill.handle_fallback”, “handler”: “fallback”}}
16:58:35.326 - SKILLS - DEBUG - {“type”: “recognizer_loop:audio_output_start”, “context”: null, “data”: {}}
16:58:37.910 - mycroft.skills.settings:_request_my_settings:440 - DEBUG - getting skill settings from server for AimlFallback
16:58:37.916 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
16:58:38.539 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 “GET /v1/device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill HTTP/1.1” 304 0
16:58:38.555 - mycroft.api:send:111 - DEBUG - Etag matched. Nothing changed for: device/3d633435-1d23-48bf-adb5-4fe1674e1d13/skill
16:58:39.053 - SKILLS - DEBUG - {“type”: “recognizer_loop:audio_output_end”, “context”: null, “data”: {}}
16:58:40.295 - SKILLS - DEBUG - {“type”: “skill-date-time:TimeSkillupdate_display”, “context”: null, “data”: {}}

Ooops we crossed messages - I will ahve to work out how to use grep and get it to a file …
:slight_smile:

AHA… Here I see an error ( the most recent- as I installed and remove subsonic a few times with msm)
Is this any help?

18:00:16.884 - mycroft.skills.core:load_skill:129 - INFO - Loaded fallback-unknown
18:00:16.897 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “song”, “end”: “skill_playback_controlTrack”}}
18:00:16.913 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-subsonic-media with ID skill-subsonic-media
18:00:16.920 - mycroft.skills.core:load_skill:144 - ERROR - Failed to load skill: skill-subsonic-media
Traceback (most recent call last):
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py”, line 115, in load_skill
(’.py’, ‘rb’, imp.PY_SOURCE)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 235, in load_module
return load_source(name, filename, file)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 171, in load_source
module = methods.load()
File “”, line 1220, in load
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “”, line 1467, in exec_module
File “”, line 1572, in get_code
File “”, line 1532, in source_to_code
File “”, line 321, in _call_with_frames_removed
File “/opt/mycroft/skills/skill-subsonic-media/init.py”, line 38
except Exception, e:
^
SyntaxError: invalid syntax
18:00:16.925 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-playback-control:handle_next”, “requires”: [[“skill_playback_controlNext”, “skill_playback_controlNext”], [“skill_playback_controlTrack”, “skill_playback_controlTrack”]], “at_least_one”: []}}
18:00:16.933 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-playback-control:handle_pause”, “requires”: [[“skill_playback_controlPause”, “skill_playback_controlPause”]], “at_least_one”: []}}
18:00:16.954 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-stop with ID skill-stop
18:00:16.961 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-playback-control:handle_play”, “requires”: [], “at_least_one”: [[“skill_playback_controlPlayResume”, “skill_playback_controlResume”]]}}
18:00:16.968 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-playback-control:handle_prev”, “requires”: [[“skill_playback_controlPrev”, “skill_playback_controlPrev”], [“skill_playback_controlTrack”, “skill_playback_controlTrack”]], “at_least_one”: []}}
18:00:16.976 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233274.8717065, “path”: “/opt/mycroft/skills/skill-playback-control”, “id”: “skill-playback-control”, “name”: “Playback Control Skill”}}
18:00:16.988 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “why is”, “end”: “fallback_unknownwhy.is”}}
18:00:16.996 - mycroft.skills.core:init_dialog:881 - DEBUG - No dialog loaded, /opt/mycroft/skills/skill-stop/dialog/en-us does not exist
18:00:16.999 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “why will”, “end”: “fallback_unknownwhy.is”}}
18:00:17.002 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “why did”, “end”: “fallback_unknownwhy.is”}}
18:00:17.008 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “why does”, “end”: “fallback_unknownwhy.is”}}
18:00:17.025 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “why do”, “end”: “fallback_unknownwhy.is”}}
18:00:17.034 - mycroft.skills.core:load_skill:129 - INFO - Loaded skill-stop
18:00:17.037 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “who is”, “end”: “fallback_unknownwho.is”}}
18:00:17.048 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: fallback-duckduckgo with ID fallback-duckduckgo
18:00:17.069 - mycroft.skills.core:init_dialog:881 - DEBUG - No dialog loaded, /opt/mycroft/skills/fallback-duckduckgo/dialog/en-us does not exist
18:00:17.071 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “who will”, “end”: “fallback_unknownwho.is”}}
18:00:17.077 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “who did”, “end”: “fallback_unknownwho.is”}}
18:00:17.080 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “who does”, “end”: “fallback_unknownwho.is”}}
18:00:17.083 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “who do”, “end”: “fallback_unknownwho.is”}}
18:00:17.088 - mycroft.skills.core:load_vocab_files:896 - DEBUG - No vocab loaded, /opt/mycroft/skills/fallback-duckduckgo/vocab/en-us does not exist
18:00:17.094 - mycroft.skills.core:load_skill:129 - INFO - Loaded fallback-duckduckgo
18:00:17.099 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what is”, “end”: “fallback_unknownquestion”}}
18:00:17.110 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what will”, “end”: “fallback_unknownquestion”}}
18:00:17.121 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-desktop-launcher with ID skill-desktop-launcher
18:00:17.140 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what did”, “end”: “fallback_unknownquestion”}}
18:00:17.143 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what does”, “end”: “fallback_unknownquestion”}}
18:00:17.160 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what do”, “end”: “fallback_unknownquestion”}}
18:00:17.168 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “”, “end”: “fallback_unknownquestion”}}
18:00:17.172 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “where is”, “end”: “fallback_unknownquestion”}}
18:00:17.174 - mycroft.skills.core:load_skill:144 - ERROR - Failed to load skill: skill-desktop-launcher
Traceback (most recent call last):
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py”, line 115, in load_skill
(’.py’, ‘rb’, imp.PY_SOURCE)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 235, in load_module
return load_source(name, filename, file)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 171, in load_source
module = methods.load()
File “”, line 1220, in load
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “”, line 1471, in exec_module
File “”, line 321, in _call_with_frames_removed
File “/opt/mycroft/skills/skill-desktop-launcher/init.py”, line 38, in
from gi.repository import Gio as gio
ImportError: No module named ‘gi’
18:00:17.180 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “where will”, “end”: “fallback_unknownquestion”}}
18:00:17.193 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “where did”, “end”: “fallback_unknownquestion”}}
18:00:17.205 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “where does”, “end”: “fallback_unknownquestion”}}
18:00:17.230 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “where do”, “end”: “fallback_unknownquestion”}}
18:00:17.233 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “”, “end”: “fallback_unknownquestion”}}
18:00:17.236 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “when is”, “end”: “fallback_unknownquestion”}}
18:00:17.250 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “when will”, “end”: “fallback_unknownquestion”}}
18:00:17.254 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “when did”, “end”: “fallback_unknownquestion”}}
18:00:17.265 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “when does”, “end”: “fallback_unknownquestion”}}
18:00:17.276 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “when do”, “end”: “fallback_unknownquestion”}}
18:00:17.268 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-wiki with ID skill-wiki
18:00:17.283 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233268.3614848, “path”: “/opt/mycroft/skills/fallback-unknown”, “id”: “fallback-unknown”, “name”: “UnknownSkill”}}
18:00:17.296 - SKILLS - DEBUG - {“type”: “mycroft.skills.loading_failure”, “context”: null, “data”: {“path”: “/opt/mycroft/skills/skill-subsonic-media”, “id”: “skill-subsonic-media”}}
18:00:17.308 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “stop”, “end”: “skill_stopStopKeyword”}}
18:00:17.320 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “silence”, “end”: “skill_stopStopKeyword”}}
18:00:17.339 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “shut up”, “end”: “skill_stopStopKeyword”}}
18:00:17.343 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “be quiet”, “end”: “skill_stopStopKeyword”}}
18:00:17.362 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-stop:StopIntent”, “requires”: [[“skill_stopStopKeyword”, “skill_stopStopKeyword”]], “at_least_one”: []}}
18:00:17.381 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233274.97171, “path”: “/opt/mycroft/skills/skill-stop”, “id”: “skill-stop”, “name”: “StopSkill”}}
18:00:17.384 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233282.9815733, “path”: “/opt/mycroft/skills/fallback-duckduckgo”, “id”: “fallback-duckduckgo”, “name”: “DuckduckgoSkill”}}
18:00:17.386 - SKILLS - DEBUG - {“type”: “mycroft.skills.loading_failure”, “context”: null, “data”: {“path”: “/opt/mycroft/skills/skill-desktop-launcher”, “id”: “skill-desktop-launcher”}}
18:00:17.550 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “wiki”, “end”: “skill_wikiWikipedia”}}
18:00:17.566 - mycroft.skills.core:load_skill:129 - INFO - Loaded skill-wiki
18:00:17.569 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “wikipedia”, “end”: “skill_wikiWikipedia”}}
18:00:17.583 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “tell me about”, “end”: “skill_wikiWikipedia”}}
18:00:17.595 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-spelling with ID skill-spelling
18:00:17.605 - mycroft.skills.core:init_dialog:881 - DEBUG - No dialog loaded, /opt/mycroft/skills/skill-spelling/dialog/en-us does not exist
18:00:17.622 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “tell us about”, “end”: “skill_wikiWikipedia”}}
18:00:17.634 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “what does wikipedia say about”, “end”: “skill_wikiWikipedia”}}
18:00:17.637 - mycroft.skills.core:load_skill:129 - INFO - Loaded skill-spelling
18:00:17.644 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “search”, “end”: “skill_wikiWikipedia”}}
18:00:17.671 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-reminder with ID skill-reminder
18:00:17.680 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “more”, “end”: “skill_wikiMore”}}
18:00:17.682 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “continue”, “end”: “skill_wikiMore”}}
18:00:17.686 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“regex”: “.*(wiki|for|about|wikipedia)(?! (for|about)) (?P<skill_wikiArticleTitle>.+)”}}
18:00:17.695 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-wiki:handle_intent”, “requires”: [[“skill_wikiWikipedia”, “skill_wikiWikipedia”], [“skill_wikiArticleTitle”, “skill_wikiArticleTitle”]], “at_least_one”: []}}
18:00:17.709 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-wiki:handle_tell_more”, “requires”: [[“skill_wikiMore”, “skill_wikiMore”], [“skill_wikiwiki_article”, “skill_wikiwiki_article”], [“skill_wikispoken_lines”, “skill_wikispoken_lines”]], “at_least_one”: []}}
18:00:17.719 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233381.0783033, “path”: “/opt/mycroft/skills/skill-wiki”, “id”: “skill-wiki”, “name”: “WikipediaSkill”}}
18:00:17.734 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “spell”, “end”: “skill_spellingSpellingKeyword”}}
18:00:17.763 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “spell word”, “end”: “skill_spellingSpellingKeyword”}}
18:00:17.780 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “spelling of”, “end”: “skill_spellingSpellingKeyword”}}
18:00:17.807 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“start”: “spelling of word”, “end”: “skill_spellingSpellingKeyword”}}
18:00:17.817 - SKILLS - DEBUG - {“type”: “register_vocab”, “context”: null, “data”: {“regex”: “(spell word|spelling of word|spelling of|spell) (?P<skill_spellingWord>\w+)”}}
18:00:17.831 - SKILLS - DEBUG - {“type”: “register_intent”, “context”: null, “data”: {“optional”: [], “name”: “skill-spelling:SpellingIntent”, “requires”: [[“skill_spellingSpellingKeyword”, “skill_spellingSpellingKeyword”], [“skill_spellingWord”, “skill_spellingWord”]], “at_least_one”: []}}
18:00:17.837 - SKILLS - DEBUG - {“type”: “mycroft.skills.loaded”, “context”: null, “data”: {“modified”: 1529233274.7217014, “path”: “/opt/mycroft/skills/skill-spelling”, “id”: “skill-spelling”, “name”: “SpellingSkill”}}

Thanks for posting that, @a_user.

What I can see immediately from this error;

 18:00:16.913 - mycroft.skills.core:load_skill:105 - INFO - ATTEMPTING TO LOAD SKILL: skill-subsonic-media with ID skill-subsonic-media
18:00:16.920 - mycroft.skills.core:load_skill:144 - ERROR - Failed to load skill: skill-subsonic-media
Traceback (most recent call last):
File “/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py”, line 115, in load_skill
(’.py’, ‘rb’, imp.PY_SOURCE)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 235, in load_module
return load_source(name, filename, file)
File “/opt/venvs/mycroft-core/lib/python3.4/imp.py”, line 171, in load_source
module = methods.load()
File “”, line 1220, in load
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “”, line 1467, in exec_module
File “”, line 1572, in get_code
File “”, line 1532, in source_to_code
File “”, line 321, in _call_with_frames_removed
File “/opt/mycroft/skills/skill-subsonic-media/init.py”, line 38
except Exception, e:
^
SyntaxError: invalid syntax

is that there is a syntax error in the Python code. So I looked at init.py in the subsonic-skill line 38 and found;

try:
    from mycroft.skills.audioservice import AudioService
except Exception, e:
    from mycroft.util import play_mp3
    AudioService = None

I suspect that your Audio Service is not started?

If you type ps -aux | grep mycroft, what is listed?

Best, Kathy

Sorry for the delays here , I am not at my 'puter …
there is the result:

pi@picroft:~ $ ps -aux | grep mycroft
mycroft 724 0.0 0.2 4976 2484 ? Ss Jun17 0:00 /lib/systemd/systemd --user
mycroft 741 0.0 0.0 6856 92 ? S Jun17 0:00 (sd-pam)
mycroft 787 0.3 2.5 198692 23704 ? Sl Jun17 5:08 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-audio
mycroft 788 2.5 1.4 43040 13732 ? Sl Jun17 40:06 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-messagebus
mycroft 789 0.4 1.4 292596 13592 ? Sl Jun17 6:39 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-enclosure-client
mycroft 1144 7.4 43.0 724480 408440 ? Sl Jun17 115:49 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-skills
mycroft 1283 1.2 0.4 101312 4660 ? Sl Jun17 20:09 /usr/bin/pulseaudio --start --log-target=syslog
root 1376 0.0 0.1 2140 1008 ? S Jun17 0:00 mycroft-admin-service
root 1377 0.0 0.7 14668 6932 ? S Jun17 0:16 mycroft-admin-service
mycroft 1402 24.8 4.9 363996 47216 ? Sl Jun17 386:34 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-speech-client
pi 1479 0.0 0.0 1912 372 tty1 S+ Jun17 0:00 sh /usr/bin/mycroft-cli-client
pi 1480 1.7 2.6 181500 24884 tty1 Sl+ Jun17 27:52 /opt/venvs/mycroft-core/bin/python /opt/venvs/mycroft-core/bin/mycroft-cli-client
pi 9161 0.0 0.1 4280 1844 pts/1 S+ 19:52 0:00 grep --color=auto mycroft
pi@picroft:~ $

OK, thanks for posting that @a_user, I am out of ideas.
@forslund, sorry to bug you on this one - other thoughts on what to try to troubleshoot here?

Best, Kathy

I have fiddled around the edges on this, but I am a child in the woods :slight_smile:
I have noticed a few issues with this picroft with some stuff not working as expected, I can wander over to Mattermost if you want…

Hi @a_user,

I’m not quite sure what you’re current main issue is.

The subsonic_media skill seem to have some issues with python3.

except Exception, e:

is quite old syntax and has been depricated. The correct syntax would be

except Exception as e:

Regarding pip:

as of mycroft 8.2.6 we moved to python3 and with that to a virtualenv based install. This means the pip that mycroft/msm will use is not the system level one, instead it’ll use
/opt/venvs/mycroft-core/bin/pip (technically it won’t be that command either but a python line importing pip)

Hope this made things slightly more clear :slight_smile:
/Åke

Fair enough. I am just a normal user, and not a developer :slight_smile:
My problem is that I couldn’t get a number of skills working, but I didn’t realise that the skill needs to be updated to Python3.
As a “dumb” user, I looked at the skills list here


and assumed that “GOOD” still meant good. LOL!

I guess I need to create some issues for some skill developers : )

thanks for responding

An easy mistake to make :wink:

The developers are currently scrambling to get the skills updated. A list of the resubmitted and vetted skills can be seen in the mycroft-skills repo

@forslund I see a similar type of error on a RPi install.

In the mycroft-audio log;

20:38:18.888 - main:load_services:111 - INFO - Loading mopidy
20:38:18.928 - main:load_services:111 - INFO - Loading mpg123
20:38:18.942 - main:load_services:111 - INFO - Loading mplayer
20:38:18.993 - main:load_services:117 - ERROR - Failed to import module mplayer
SyntaxError(‘invalid syntax’, (’/home/pi/mycroft-core/.venv/lib/python3.5/site-packages/py_mplayer/init.py’, 799, 29, ’ except Exception, e:\n’))
20:38:18.999 - main:load_services:111 - INFO - Loading vlc
20:38:19.337 - main:load_services:132 - ERROR - Failed to load service. NameError(“no function ‘libvlc_new’”,)

Checking some requirements, show everything is OK;

pi@pi_ai:~/mycroft-core/scripts/logs $ source /home/pi/mycroft-core/.venv/bin/activate
(.venv) pi@pi_ai:~/mycroft-core/scripts/logs $ pip install py_mplayer
Requirement already satisfied: py_mplayer in /home/pi/mycroft-core/.venv/lib/python3.5/site-packages
Requirement already satisfied: pyee in /home/pi/mycroft-core/.venv/lib/python3.5/site-packages (from py_mplayer)
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
(.venv) pi@pi_ai:~/mycroft-core/scripts/logs $

Those are optional audio services that can be setup if desired. so it’s ok that they fail.

True, but in my case (and probably more users with audio problems) I don want to use “mpg123” as audio backend for those type of media.

Most skills that will play stuff other than WAV by MyCroft default uses;

“play_mp3_cmdline” : “mg123 %1”

That would be fine on a system with only one sound card. However if you have multiple (USB) sound cards and for instance want MyCroft to play though one audio device, but other software through another you can specify which pulseaudio output sink to use.

However the issue with mpg123 is that it does not have that witch for selecting a pulseaudio sink. So for it to work and accepting a name specified sink you need to change it to a player that do accept named sinks;

“play_mp3_cmdline”: “mplayer -ao pulse::alsa_output.platform-soc_audio.analog-stereo %1”

Above is for instance to tell mycroft to use the analog-stereo (headphone plug) on the RPi. But you can for instance tell it to use any named sink like that.

With the following commands you can figure out wich sinks you have;

pulseaudio -D
pacmd list-sinks | egrep “index|name:”

This will give output like;

  • index: 0
    name: <alsa_output.ANY-USB-TYPE-OF-NAME.analog-stereo>
    index: 1
    name: <alsa_output.platform-soc_audio.analog-stereo>

If for instance I would like to use my USB soundcard as default, yet tell MyCroft to use the headphone jack for all it’s playing. I could send the SOC as shown above.

(If I make any sense)

Anyhow: Typing out my notes of how I installed pulseaudio as server instance on Raspbian stretch lite and sending the named sinks to MyCroft via mycroft.conf so whatever USB stuff I connect in the future (or perhaps BT speakers) and use as default, Mycroft don’t get upset with all crappy audio issues as result.

Will ping you shortly when it s typed out.

(Have to say, haven’t tested yet playing back the news. BIG change I am mixing things up here…:smiley: )

EDIT: Just ignore me (again). Just tested it, and all working fine, so py_mplayer has nothing todo with mplayer itself. (But you already knew this :slight_smile: )