From a22ea6731367a57f782de84bdb44d4116e127fd2 Mon Sep 17 00:00:00 2001 From: jarbasai Date: Sat, 7 May 2022 11:51:07 +0100 Subject: [PATCH] fix/optional_adapt adapt should not be imported --- ovos_utils/intents/intent_service_interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ovos_utils/intents/intent_service_interface.py b/ovos_utils/intents/intent_service_interface.py index a0148806..eb239a1e 100644 --- a/ovos_utils/intents/intent_service_interface.py +++ b/ovos_utils/intents/intent_service_interface.py @@ -1,6 +1,6 @@ from os.path import exists, isfile -from adapt.intent import Intent + from mycroft_bus_client import MessageBusClient from mycroft_bus_client.message import Message, dig_for_message from ovos_utils import create_daemon @@ -502,6 +502,9 @@ def get_keywords_manifest(self): def open_intent_envelope(message): """Convert dictionary received over messagebus to Intent.""" + # TODO can this method be fully removed from ovos_utils ? + from adapt.intent import Intent + intent_dict = message.data return Intent(intent_dict.get('name'), intent_dict.get('requires'),