Hi All,
I’m attempting to use the Pandora skill on my PiCroft installation. In my skills/account information I have my login information which I know is correct but for some reason Mycroft can’t seem to use it. I’ve tried uninstalling the skill, reinstalling the skill, and doing a configuration up date but nothing seems to resolve this.
I am repeatedly given an error that says:
“Pandora failed to load. Please verify your email and password at home.mycroft.ai”
“Starting Pandora”
"An error occurred while processing a resquest in Pianobar Skill"
Any suggestions to get this Pandora or Pianobar skill working?
On a related note, I started poking around my device and discovered that in the /opt/Mycroft/skills/pianobar-skill location there is a settings.json that appears to have my Pandora login and password information in plain text (yikes!) which seems like a security concern.
I would recommend looking at the debug logs and posting them of right after you say play pandora. You can do this via voice with hey mycroft, create a support ticket.
That’s an excellent suggestion thank you! I did that and nothing jumped out at me that appeared specific to Pandora that I can tell. Here is the enclosure portion of my log:
More detail:
In /var/log/mycroft-enclosure-client.log I am repeatedly seeing “mycroft.configuration.config:load_local:133 - DEBUG - Configuration ‘/home/pi/.mycroft/mycroft.conf’ not found”
When I try to “play pandora” the log includes:
“Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.3-py2.7.egg/mycroft/configuration/config.py”, line 167, in init
location = api.get_location()
File “/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.3-py2.7.egg/mycroft/api/init.py”, line 241, in get_location
"path”: “/” + self.identity.uuid + “/location"
File “/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.3-py2.7.egg/mycroft/api/init.py”, line 61, in request
return self.send(params)
File “/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.3-py2.7.egg/mycroft/api/init.py”, line 86, in send
data=data, json=json, timeout=(3.05, 15))
File “/usr/local/lib/python2.7/site-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python2.7/site-packages/requests/adapters.py”, line 499, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPSConnectionPool(host=‘api.mycroft.ai’, port=443): Read timed out. (read timeout=15)”
If I switch to the /etc/mycroft before invoking the cli, the “play pandora” yields:
“17:26:39.394 - pianobar-skill__init__:extract_station:338 - INFO - ‘NoneType’ object has no attribute 'getitem’
17:26:39.399 - pianobar-skill__init_:play_station:342 - INFO - Starting: None
17:26:39.412 - pianobar-skill__init_:launch_pianobar_process:288 - INFO - Starting Pianobar process
17:26:44.483 - pianobar-skill__init_:_play_station:383 - INFO - list index out of range
17:26:44.501 - mycroft.skills.core:wrapper:608 - ERROR - An error occurred while processing a request in Pianobar Skill
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/mycroft_core-18.2.3-py2.7.egg/mycroft/skills/core.py”, line 599, in wrapper
handler(message)
File “/opt/mycroft/skills/pianobar-skill/init.py”, line 412, in play_pandora
self._play_station(station, dialog)
File “/opt/mycroft/skills/pianobar-skill/init.py”, line 386, in _play_station
self.process.stdin.write(“0\n”)
AttributeError: ‘NoneType’ object has no attribute ‘stdin’”
Is there going to be any resolution on this? I just installed the Pandora skill and it is still having these same symptoms, is there not any development on this project anymore?
@ethanward looks to be the original developer, the GitHub indicates there was some work done within the last couple weeks. Just speculating but may require changes for the Python 3.4 update.
Good Luck.
I still get the “Pandora filed to load …” error when i say “play pandora”
. My account information in settings.json is correct. Has there been any resolution to this problem?
22:37:12.222 - mycroft-pandora_mycroftai:_launch_pianobar_process:350 - ERROR -
Failed to connect to Pandora
Traceback (most recent call last):
File “/opt/mycroft/skills/mycroft-pandora.mycroftai/init.py”, line 347, in
_launch_pianobar_process
self._load_current_info()
File “/opt/mycroft/skills/mycroft-pandora.mycroftai/init.py”, line 309, in
_load_current_info
info = json.load(f)
File “/usr/lib/python3.4/json/init.py”, line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File “/usr/lib/python3.4/json/init.py”, line 318, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.4/json/decoder.py”, line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.4/json/decoder.py”, line 361, in raw_decode
raise ValueError(errmsg(“Expecting value”, s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
22:37:12.248 - SKILLS - DEBUG - {“type”: “speak”, “data”: {“utterance”: “Pandora
failed to load. Please verify your email and password at home.mycroft.ai”, “ex
pect_response”: false}, “context”: {}}
In trying to do my own debugging, I noted that pianobar was not running and I tried to start it manually from the pi account:
pi@picroft:~ $ sudo cp -R …/mycroft/.config/pianobar .config
pi@picroft:~ $ pianobar
Welcome to pianobar (2014.06.08)! Press ? for a list of commands.
(i) Login… Network error: TLS fingerprint mismatch.
pi@picroft:~ $
The username and password in pianobar/config look OK. The TLS fingerprint is:
P.S. I needed to use my @umich.edu email account to sign up for the Mycroft forum because it wouldn’t accept my preferred email (david.schwab.email@gmail.com) as a valid email address.