diff --git a/python/scripts/designer.py b/python/scripts/designer.py index a1b0b0f..a9b212b 100644 --- a/python/scripts/designer.py +++ b/python/scripts/designer.py @@ -16,5 +16,9 @@ elif is_installed("PySide2"): from PySide2.scripts.pyside_tool import designer else: - sys.exit("No rcc can be found in current Python environment.") + ERR_MSG = ( + "No rcc can be found in the current Python environment. " + "Make sure the latest PySide6 or PySide2 is installed." + ) + sys.exit(ERR_MSG) sys.exit(designer()) diff --git a/python/scripts/linguist.py b/python/scripts/linguist.py index 82dfa4e..9d2ab08 100644 --- a/python/scripts/linguist.py +++ b/python/scripts/linguist.py @@ -12,6 +12,10 @@ elif is_installed("PySide6"): from PySide6.scripts.pyside_tool import linguist else: - sys.exit("No Qt Linguist can be found in current Python environment.") + ERR_MSG = ( + "No Qt Linguist can be found in the current Python environment. " + "Make sure the latest PySide6 is installed." + ) + sys.exit(ERR_MSG) sys.exit(linguist()) diff --git a/python/scripts/lrelease.py b/python/scripts/lrelease.py index ab7abad..7e2348a 100644 --- a/python/scripts/lrelease.py +++ b/python/scripts/lrelease.py @@ -12,5 +12,9 @@ elif is_installed("PySide6"): from PySide6.scripts.pyside_tool import lrelease else: - sys.exit("No lrelease can be found in current Python environment.") + ERR_MSG = ( + "No lrelease can be found in the current Python environment. " + "Make sure the latest PySide6 is installed." + ) + sys.exit(ERR_MSG) sys.exit(lrelease()) diff --git a/python/scripts/lupdate.py b/python/scripts/lupdate.py index c74dec9..646e764 100644 --- a/python/scripts/lupdate.py +++ b/python/scripts/lupdate.py @@ -26,6 +26,10 @@ elif is_installed("PyQt5"): from PyQt5.pylupdate_main import main as lupdate else: - sys.exit("No lupdate can be found in current Python environment.") + ERR_MSG = ( + "No lupdate can be found in the current Python environment. " + "Make sure the latest PySide6, PySide2, PyQt6 or PyQt5 is installed." + ) + sys.exit(ERR_MSG) sys.exit(lupdate()) diff --git a/python/scripts/qml.py b/python/scripts/qml.py index 5802198..71b73d9 100644 --- a/python/scripts/qml.py +++ b/python/scripts/qml.py @@ -12,5 +12,9 @@ elif is_installed("PySide6"): from PySide6.scripts.pyside_tool import qml else: - sys.exit("No pyside6-qml can be found in current Python environment.") + ERR_MSG = ( + "No pyside6-qml can be found in the current Python environment. " + "Make sure the latest PySide6 is installed." + ) + sys.exit(ERR_MSG) sys.exit(qml()) diff --git a/python/scripts/qmlls.py b/python/scripts/qmlls.py index 3f48caf..d092f44 100644 --- a/python/scripts/qmlls.py +++ b/python/scripts/qmlls.py @@ -12,5 +12,10 @@ elif is_installed("PySide6"): from PySide6.scripts.pyside_tool import qmlls else: - sys.exit("No qmlls can be found in current Python environment.") + ERR_MSG = ( + "No qmlls can be found in the current Python environment. " + "Make sure the latest PySide6 is installed. " + "Update configuration to disable qmlls integration if you don't need it." + ) + sys.exit(ERR_MSG) sys.exit(qmlls()) diff --git a/python/scripts/rcc.py b/python/scripts/rcc.py index 54c7507..9402666 100644 --- a/python/scripts/rcc.py +++ b/python/scripts/rcc.py @@ -20,5 +20,9 @@ elif is_installed("PyQt5"): from PyQt5.pyrcc_main import main as rcc else: - sys.exit("No rcc can be found in current Python environment.") + ERR_MSG = ( + "No rcc can be found in the current Python environment. " + "Make sure the latest PySide6, PySide2 or PyQt5 is installed." + ) + sys.exit(ERR_MSG) sys.exit(rcc()) diff --git a/python/scripts/uic.py b/python/scripts/uic.py index cb87f9c..5ecc86a 100644 --- a/python/scripts/uic.py +++ b/python/scripts/uic.py @@ -24,5 +24,9 @@ elif is_installed("PyQt5"): from PyQt5.uic.pyuic import main as uic else: - sys.exit("No uic can be found in current Python environment.") + ERR_MSG = ( + "No uic can be found in the current Python environment. " + "Make sure the latest PySide6, PySide2, PyQt6 or PyQt5 is installed." + ) + sys.exit(ERR_MSG) sys.exit(uic())