From 2f8e18f6232307e98818aae9c158b0c20be9c7fc Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:10:00 +0000 Subject: [PATCH] fix/version_string (#20) * fix/version_string * Update __init__.py --- ovos_gui_plugin_shell_companion/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ovos_gui_plugin_shell_companion/__init__.py b/ovos_gui_plugin_shell_companion/__init__.py index 0458f4c..8908778 100644 --- a/ovos_gui_plugin_shell_companion/__init__.py +++ b/ovos_gui_plugin_shell_companion/__init__.py @@ -4,8 +4,7 @@ from ovos_bus_client.client import MessageBusClient from ovos_bus_client import Message from ovos_utils import network_utils -from ovos_utils.fingerprinting import get_mycroft_version -from ovos_utils.gui import GUIInterface +from ovos_bus_client.apis.gui import GUIInterface from ovos_utils.log import LOG from ovos_config.config import Configuration @@ -190,7 +189,10 @@ def display_advanced_config_groups(self, message=None): def build_initial_about_page_data(self): uname_info = platform.uname() - version = get_mycroft_version() or "unknown" + try: + from ovos_core.version import OVOS_VERSION_STR as version + except ImportError: + version = "unknown" self.about_page_data.append({"display_key": "Kernel Version", "display_value": uname_info[2]}) self.about_page_data.append({"display_key": "Core Version", "display_value": version}) self.about_page_data.append({"display_key": "Python Version", "display_value": platform.python_version()})