mikejgray / ovos-skill-projen

Opinionated best-practice skill generator for OVOS/Neon skills. Also has an option to retrofit Mycroft skills using OVOS best practices.
Apache License 2.0
6 stars 1 forks source link

[BUG] HelloWorldSkill skill will not load from default projen genrated template #14

Closed rosskouk closed 7 months ago

rosskouk commented 11 months ago

Description

When trying to begin skill development with Neon.AI I used projen to create a template. This template contains a default HelloWorldSkill class. I wanted to get this running on a Neon.AI instance running on Docker containers. The containers were build using the docker-compose file from the NeonCore repo here: https://github.com/NeonGeckoCom/NeonCore/blob/23.12.20/docker/docker-compose.yml.

The local skill folder is then mounted into the neon-skills container via the NEON_SKILLS_DIR environment variable.

Steps to Reproduce

Relevant Code

2023-12-29 16:42:55.350 - skills - ovos_workshop.skill_launcher:load:295 - INFO - ATTEMPTING TO LOAD SKILL: AskNeonNavidrome
2023-12-29 16:42:55.351 - skills - ovos_workshop.skill_launcher:_load_skill_source:428 - ERROR - Failed to load AskNeonNavidrome due to a missing file.
2023-12-29 16:42:55.352 - skills - ovos_workshop.skill_launcher:_create_skill_instance:456 - WARNING - Skill load raised exception: Expected module and got None
2023-12-29 16:42:55.353 - skills - ovos_workshop.skill_launcher:_create_skill_instance:476 - WARNING - Legacy skill: 'NoneType' object is not callable
2023-12-29 16:42:55.354 - skills - mycroft.skills.skill_manager:_load_skill:624 - ERROR - Load of skill /skills/AskNeonNavidrome failed!
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/ovos_workshop/skill_launcher.py", line 472, in _create_skill_instance
    self.instance = skill_creator(bus=self.bus,
TypeError: 'NoneType' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/mycroft/skills/skill_manager.py", line 622, in _load_skill
    load_status = skill_loader.load()
  File "/usr/local/lib/python3.8/site-packages/ovos_workshop/skill_launcher.py", line 296, in load
    return self._load()
  File "/usr/local/lib/python3.8/site-packages/ovos_workshop/skill_launcher.py", line 378, in _load
    self.loaded = self._create_skill_instance()
  File "/usr/local/lib/python3.8/site-packages/ovos_workshop/skill_launcher.py", line 477, in _create_skill_instance
    self.instance = skill_creator()
TypeError: 'NoneType' object is not callable

Other Notes

No response

mikejgray commented 10 months ago

@rosskouk Apologies for getting back to you late on this, would you please update your version and try again? I think I've addressed the issues at play here, at least based on my local testing.

rosskouk commented 10 months ago

Thanks Mike, will do.

On Wed, 17 Jan 2024, 05:01 Mike, @.***> wrote:

@rosskouk https://github.com/rosskouk Apologies for getting back to you late on this, would you please update your version and try again? I think I've addressed the issues at play here, at least based on my local testing.

— Reply to this email directly, view it on GitHub https://github.com/mikejgray/ovos-skill-projen/issues/14#issuecomment-1894945425, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZJF3X2IZ4MGPDNZD35G7DYO5LMLAVCNFSM6AAAAABBG2W5TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUHE2DKNBSGU . You are receiving this because you were mentioned.Message ID: @.***>

mikejgray commented 7 months ago

@rosskouk I'm going to close this issue as resolved, but please reopen if you find the update didn't fix your problem

rosskouk commented 7 months ago

Thanks Mike. Apologies for not being in touch sooner, I've not been able to get to it as of yet.

On Wed, 17 Apr 2024, 14:39 Mike, @.***> wrote:

@rosskouk https://github.com/rosskouk I'm going to close this issue as resolved, but please reopen if you find the update didn't fix your problem

— Reply to this email directly, view it on GitHub https://github.com/mikejgray/ovos-skill-projen/issues/14#issuecomment-2061286399, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZJF3XYKBWC4KIQQAUMF2DY5Z3QPAVCNFSM6AAAAABBG2W5TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGI4DMMZZHE . You are receiving this because you were mentioned.Message ID: @.***>