Build an open future with us.

Invest in Mycroft and become a community partner.

NPR news Skill no working


#1

I’ve tried removing and reinstalling. It shows the skill is installed i.e. skills in CLI. But is a different colour when the list of skills are displayed the NPR skill is a different colour.

fallback-unknown.mycroftai
fallback-wolfram-alpha.mycroftai
mycroft-alarm.mycroftai
mycroft-audio-record.mycroftai
mycroft-configuration.mycroftai
mycroft-date-time.mycroftai
mycroft-fallback-duck-duck-go.mycroftai
mycroft-hello-world.mycroftai
mycroft-installer.mycroftai
mycroft-ip.mycroftai
mycroft-joke.mycroftai
mycroft-naptime.mycroftai
mycroft-npr-news.mycroftai
mycroft-pairing.mycroftai
mycroft-pandora.mycroftai
mycroft-personal.mycroftai
mycroft-playback-control.mycroftai
mycroft-reminder.mycroftai
mycroft-singing.mycroftai
mycroft-speak.mycroftai
mycroft-spelling.mycroftai
mycroft-spotify.forslund
mycroft-stock.mycroftai
mycroft-stop.mycroftai
mycroft-support-helper.mycroftai
mycroft-timer.mycroftai
mycroft-version-checker.mycroftai
mycroft-volume.mycroftai
mycroft-weather.mycroftai
mycroft-wiki.mycroftai
plasma-activities-skill.aiix
my log ouput
16:56:08.903 - main:handle_utterance:61 - INFO - Utterance: [‘play news’]
16:56:09.022 - Playback Control Skill - INFO - Resolving Player for: news
16:56:09.037 - mycroft-pandora_mycroftai:_extract_station:389 - INFO - ‘NoneType’ object is not subscriptable


#2

Thanks so much for reporting this, @Gary_Robinson.
Are you able to confirm for me;

  • what Mycroft Device you are on - Mark 1, Picroft, Linux
  • what version of Mycroft you are running?

Best, Kathy


#3

Im using Linux elementary OS
mycroft-core 18.8.3


#4

I was having a problem with the NPR news skill.
I am running the “Lighting preview” that is a git install.
The following fixed my problem.
You should be able to run:
cd ~/mycroft-core

then
git pull

then:
./dev_setup.sh

then:
./start-mycroft.sh debug


#5

i tried the git pull and dev_setup.sh but no luck

see screenshot of skills


#6

Thanks @Gary_Robinson. If you run the command:

ls -las /opt/mycroft/skills, what do you see?
I’m trying to see if there’s a file system permissions issue at all.

Appreciate your diagnostic information.
Best, Kathy


#7

Hi Kathy see output
TP/1.1" 200 928
22:54:10.692 - mycroft.configuration.config:load_local:109 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded
22:54:10.860 - mycroft.configuration.config:load_local:109 - DEBUG - Configuration /home/pi/.mycroft/mycroft.conf loaded
(.venv) pi@picroft:~/mycroft-core $ ls -las /opt/mycroft/skills
total 128
4 drwxr-xr-x 32 pi pi 4096 Oct 30 22:38 .
4 drwxr-xr-x 4 pi pi 4096 Oct 30 16:42 …
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 fallback-unknown.mycroftai
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:38 fallback-wolfram-alpha.mycroftai
0 -rw-r–r-- 1 pi pi 0 Oct 30 22:40 .msm
4 drwxr-xr-x 9 pi pi 4096 Oct 30 16:38 mycroft-alarm.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-audio-record.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-configuration.mycroftai
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:38 mycroft-date-time.mycroftai
4 drwxr-xr-x 4 pi pi 4096 Oct 30 16:38 mycroft-fallback-duck-duck-go.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-hello-world.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-installer.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-ip.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-joke.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-naptime.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 21:39 mycroft-npr-news.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:36 mycroft-pairing.mycroftai
4 drwxr-xr-x 5 pi pi 4096 Oct 30 16:42 mycroft-pandora.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-personal.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-playback-control.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-reminder.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-singing.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-speak.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-spelling.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 22:38 mycroft-spotify.forslund
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:38 mycroft-stock.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-stop.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-support-helper.mycroftai
4 drwxr-xr-x 7 pi pi 4096 Oct 30 16:38 mycroft-timer.mycroftai
4 drwxr-xr-x 6 pi pi 4096 Oct 30 16:38 mycroft-version-checker.mycroftai
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:36 mycroft-volume.mycroftai
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:38 mycroft-weather.mycroftai
4 drwxr-xr-x 8 pi pi 4096 Oct 30 16:38 mycroft-wiki.mycroftai
(.venv) pi@picroft:~/mycroft-core $

cheers
Gary


#8

Hi Gary, we’ve released an update on the NPR News Skill; you’ll just need to update the Skill by rebooting for it to work. Read more here:


#9

I still having no luck with NPR news. Ive check the version and its the latest. When i ask to "play the lates news " I get a spotify error. see scren capture


#10

Hi @Gary_Robinson, thanks for flagging this with us.

Have you updated your mycroft-core to the latest version - 18.8.4?
And has your Skill been updated to the latest version, usually by rebooting your Device?

Best, Kathy


#11

I still cant get NPR working . I’ve update to the latest version of MyCroft 18.8 and rebooted the computer. Still no luck

Regards
Gary


#12

Hi there @Gary_Robinson, when you say it’s not working, what are the specific symptoms?

  • Is it just the NPR news that doesn’t work? What happens if you change the news to say the BBC broadcast or the NBC broadcast?
  • Are there any errors in your skills.log for the NPR News Skill - if you’re comfortable sshing in to your device I can walk you through finding the skills.log.

#13

Hi Kathy,

this is from the log
15:42:52.971 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
Traceback (most recent call last):
File “/home/mycroft/mycroft-core/mycroft/skills/core.py”, line 143, in load_skill
raise e
File “/home/mycroft/mycroft-core/mycroft/skills/core.py”, line 138, in load_skill
skill._register_decorated()
File “/home/mycroft/mycroft-core/mycroft/skills/core.py”, line 559, in _register_decorated
method = getattr(self, attr_name)
File “/opt/mycroft/skills/mycroft-npr-news.mycroftai/init.py”, line 67, in url_rss
for link in data[‘entries’][0][‘links’]:
IndexError: list index out of range
regards
Gary


#14

Im using Linux so I can user terminal to get to log file, Do you want a copy?


#15

Perhaps not the whole log file, but if you could do

cat /var/log/mycroft/skills.log | grep -i error | grep -i npr > npr.log
then post the npr.log that will be super helpful.


#16

Hi Kathy,

see output
18:46:39.324 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
15:10:38.129 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
15:26:57.975 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
15:31:32.831 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
15:39:45.350 - SkillInstallerSkill - ERROR - MSM failed: AlreadyInstalled(mycroft-npr-news)
15:50:51.611 - mycroft.messagebus.client.ws:remove:176 - WARNING - Existing events: defaultdict(<class ‘list’>, {‘new_listener’: [], ‘configuration.updated’: [<fun$
15:51:24.799 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
16:19:06.551 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
16:27:51.840 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
16:32:43.871 - SkillInstallerSkill - ERROR - MSM failed: AlreadyInstalled(mycroft-npr-news)
16:36:13.790 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
16:39:22.270 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
21:45:53.476 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
13:38:36.671 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
23:41:19.764 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
23:46:48.703 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
19:47:41.119 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
19:54:33.096 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai
20:15:23.027 - mycroft.messagebus.client.ws:remove:176 - WARNING - Existing events: defaultdict(<class ‘list’>, {‘new_listener’: [], ‘configuration.updated’: [<fun$
15:42:52.971 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: mycroft-npr-news.mycroftai

regards
Gary


#17

That’s super useful, thanks @Gary_Robinson.

This tells us that the Skill failed to load, rather than loading then erroring.

There are multiple possible causes for this, including;

  • a corrupted skills.json file in the `/opt/mycroft/skills/SKILL-NPR-DIRECTORY
  • some sort of dependency not loading

Are you able to provide me with the output of;

cat /var/log/mycroft/skills.log | grep -i npr

Then I can do a deeper level of diagnostics.


#18

Hi kathy
the results are too big for the reply, is there a way to send an attachment?
Regards
Gary


#19

Hi Kathy , try this link for npr output
https://drive.google.com/file/d/1ekllDjG3cmL1ujNQMJCIXJUNSLSaP_rD/view?usp=sharing


#20

Super helpful, thank you. These logs showed that the error is occurring in this line of this file;
File "/opt/mycroft/skills/mycroft-npr-news.mycroftai/__init__.py", line 53, in url_rss
I took a look at this Python code;
url_rss = self.settings.get("url_rss")

This is the setting that is used if a “custom” URL is set. Do you have a custom news URL set and if so, could you please let me know what it is?