Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start the skill - TypeError: '>' not supported between instances of 'list' and 'int' #123

Open
macxcool opened this issue Jan 17, 2022 · 1 comment · May be fixed by #124
Open

Can't start the skill - TypeError: '>' not supported between instances of 'list' and 'int' #123

macxcool opened this issue Jan 17, 2022 · 1 comment · May be fixed by #124
Labels

Comments

@macxcool
Copy link

Describe the bug
Mycroft consistently fails to start this skill and throws a python error:
TypeError: '>' not supported between instances of 'list' and 'int'

To Reproduce
Steps to reproduce the behavior:
Install the news still and watch the logs. The skill never gets enabled.

Log files
`
19:34:08.038 | INFO | 763 | NewsSkill | Creating custom News Station from Skill settings.

  File "/home/pi/mycroft-core/mycroft/skills/skill_loader.py", line 307, in _create_skill_instance
    self.instance.initialize()
  File "/opt/mycroft/skills/mycroft-npr-news.mycroftai/__init__.py", line 50, in initialize
    self.on_websettings_changed()
  File "/opt/mycroft/skills/mycroft-npr-news.mycroftai/__init__.py", line 78, in on_websettings_changed
    create_custom_station(custom_url)
  File "/opt/mycroft/skills/mycroft-npr-news.mycroftai/stations/station.py", line 146, in create_custom_station
    is_rss_feed = feedparser.parse(station_url).entries > 0
TypeError: '>' not supported between instances of 'list' and 'int'
`

If you are running Mycroft, the [Support Skill](https://github.com/MycroftAI/skill-support) helps to automate gathering this information. Simply say "Create a support ticket" and the Skill will put together a support package and email it to you.

**Environment (please complete the following information):**
 - Device type: Raspberry Pi 4
 - OS: Picroft
 - Mycroft-core version: 21.2.2

**Additional context**
I tried to set up a custom new source but reverted back to the default files. Things worked for awhile until I did this. Now I can't get it to work again, even though I've reverted back to the 21.02 branch.
I suspect that it's getting a bad setting from home.mycroft.ai, but I can't access the News settings there anymore to revert the setting back to the default. I'm stuck.
@macxcool macxcool added the bug label Jan 17, 2022
@krisgesling krisgesling linked a pull request Feb 10, 2022 that will close this issue
6 tasks
@krisgesling
Copy link
Contributor

Hey, thanks for logging this - there's a fix committed in the PR above. If you are able to confirm it that is great, otherwise it will take a few days to push it out to all devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants