Skip to content

Commit

Permalink
Troubleshooting ovos-workshop skills compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 25, 2023
1 parent 8f76271 commit bea85d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions neon_utils/skills/common_query_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from abc import abstractmethod
from os.path import dirname

from ovos_utils.intents import IntentLayers
from ovos_workshop.skills.common_query_skill import CQSMatchLevel, CQSVisualMatchLevel
from ovos_workshop.skills.common_query_skill import CommonQuerySkill as _CQS
from ovos_utils.file_utils import resolve_resource_file
Expand Down Expand Up @@ -81,6 +82,14 @@ def __init__(self, *args, **kwargs):
CQSMatchLevel.CATEGORY: 0.6,
CQSMatchLevel.GENERAL: 0.5
}

# Manual init of OVOSSkill
self.private_settings = None
self._threads = []
self._original_converse = self.converse
self.intent_layers = IntentLayers()
self.audio_service = None

NeonSkill.__init__(self, *args, **kwargs)

noise_words_filepath = f"text/{self.lang}/noise_words.list"
Expand Down
2 changes: 2 additions & 0 deletions requirements/test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pytest-cov
mock
# TODO: Deprecate ovos-core test dependency
ovos-core~=0.0.7,>=0.0.8a21
ovos-workshop==0.0.12
# TODO: ovos-workshop pinned to test backwards-compat
ovos-plugin-manager~=0.0.18
ovos-skills-manager
neon-lang-plugin-libretranslate

0 comments on commit bea85d4

Please sign in to comment.