GithubHelp home page GithubHelp logo

Failed to load 20.2.0 about kodi-skill HOT 5 CLOSED

pcwii avatar pcwii commented on June 27, 2024
Failed to load 20.2.0

from kodi-skill.

Comments (5)

scottsweb avatar scottsweb commented on June 27, 2024

Also have some trouble with loading this skill in 20.2.x:

tail /var/log/mycroft/skills.log -n 1000 | grep kodi 
2020-03-23 13:43:12.439 | INFO     |  1905 | mycroft.skills.skill_loader:load:114 | ATTEMPTING TO LOAD SKILL: kodi-skill.pcwii
2020-03-23 13:43:14.441 | INFO     |  1905 | mycroft.skills.settings:get_local_settings:78 | /opt/mycroft/skills/kodi-skill.pcwii/settings.json
  File "/opt/mycroft/skills/kodi-skill.pcwii/__init__.py", line 64, in initialize
2020-03-23 13:43:15.504 | ERROR    |  1905 | mycroft.skills.skill_loader:_communicate_load_status:286 | Skill kodi-skill.pcwii failed to load
2020-03-23 13:48:44.112 | INFO     |  3288 | mycroft.skills.skill_loader:load:114 | ATTEMPTING TO LOAD SKILL: kodi-skill.pcwii
2020-03-23 13:48:47.535 | INFO     |  3288 | mycroft.skills.settings:get_local_settings:78 | /opt/mycroft/skills/kodi-skill.pcwii/settings.json
  File "/opt/mycroft/skills/kodi-skill.pcwii/__init__.py", line 64, in initialize

The settings.json file doesn't exist after fresh install so perhaps that is the problem. I will see if I can get it started.

from kodi-skill.

scottsweb avatar scottsweb commented on June 27, 2024

I created a faked settings.json file and now get this error:

mycroft.skills.skill_loader:_create_skill_instance:249 | Skill initialization failed with AttributeError("'dict' object has no attribute 'set_changed_callback'")
Traceback (most recent call last):
  File "/opt/mycroft/mycroft/skills/skill_loader.py", line 243, in _create_skill_instance
    self.instance.initialize()
  File "/opt/mycroft/skills/kodi-skill.pcwii/__init__.py", line 64, in initialize
    self.settings.set_changed_callback(self.on_websettings_changed)
AttributeError: 'dict' object has no attribute 'set_changed_callback'

So there has perhaps been a slight API change for skills.

from kodi-skill.

Nyndroth avatar Nyndroth commented on June 27, 2024

I am experiencing the same problem. If you need someone to test any new developments, let me know.

from kodi-skill.

pcwii avatar pcwii commented on June 27, 2024

@Nyndroth, @scottsweb, @tempuser0012 Thanks for the info. There was a breaking change in 20.2 that changed the syntax of the 'set_changed_callback' (basically a notification if the web settings are updated. I have corrected this and it should work as expected.

from kodi-skill.

scottsweb avatar scottsweb commented on June 27, 2024

Thanks, will give it a test.

from kodi-skill.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.