diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/adapters/wireless.py b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/adapters/wireless.py index f2ea919c..71cb3c1c 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/wifi/adapters/wireless.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/wifi/adapters/wireless.py @@ -128,6 +128,10 @@ def _detect_driver(self) -> WifiController: self._sudo_from_stdin() version = cmd("nmcli --version").split()[-1] + # On RHEL based systems, the version is in the form of 1.44.2-1.fc39 + # wich raises an error when trying to compare it with the Version class + if any(c.isalpha() for c in version): + version = version.split("-")[0] return ( Nmcli0990Wireless(password=self._password) if Version(version) >= Version("0.9.9.0")