Python domoticz package not found?
Posted: Saturday 12 July 2025 19:11
Gents,
I'm having severe problems to get Python Plugins to work with Domoticz in Windows 11.
Running Windows 11 24H2, Domoticz installed with stable precompiled binary (2025.1) from Domoticz web page.
Python installed for x86 (as instructed as Domoticz binary is 32-bit) and recognized in Domoticz about page (Python Version: 3.13.5 (tags/v3.13.5:6cb20a2, Jun 11 2025, 15:56:57) [MSC v.1943 32 bit (Intel)])
After putting the python module in a new folder under the plugins folder and rebooting PC the following error message is received (plugin name masked with xxx):
2025-07-12 18:15:20.291 Error: XXX: (STV) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\XXX\;C:\Program Files (x86)\Python313-32\python313.zip;C:\Program Files (x86)\Python313-32\DLLs;C:\Program Files (x86)\Python313-32\Lib;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python313-32;C:\Program Files (x86)\Python313-32\Lib\site-packages'.
2025-07-12 18:15:20.352 Error: XXX: Exception: 'RuntimeError'. No traceback available.
Looking at the plugin.py it tries to import Domoticz package and if I try to install using pip3 there is no such package available. Trying to run 'import Domoticz' from IDLE returns "ModuleNotFoundError: No module named 'Domoticz'"
I'm suspecting that Domoticz package is not installed or found in any of the relevant paths. How do I get hold of the Domoticz python package if not found through pip or included in install binary? Or is there anyone how has other ideas why it is not working. Been searching like crazy for a solution but not been able to find similar issue.
I'm having severe problems to get Python Plugins to work with Domoticz in Windows 11.
Running Windows 11 24H2, Domoticz installed with stable precompiled binary (2025.1) from Domoticz web page.
Python installed for x86 (as instructed as Domoticz binary is 32-bit) and recognized in Domoticz about page (Python Version: 3.13.5 (tags/v3.13.5:6cb20a2, Jun 11 2025, 15:56:57) [MSC v.1943 32 bit (Intel)])
After putting the python module in a new folder under the plugins folder and rebooting PC the following error message is received (plugin name masked with xxx):
2025-07-12 18:15:20.291 Error: XXX: (STV) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\XXX\;C:\Program Files (x86)\Python313-32\python313.zip;C:\Program Files (x86)\Python313-32\DLLs;C:\Program Files (x86)\Python313-32\Lib;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python313-32;C:\Program Files (x86)\Python313-32\Lib\site-packages'.
2025-07-12 18:15:20.352 Error: XXX: Exception: 'RuntimeError'. No traceback available.
Looking at the plugin.py it tries to import Domoticz package and if I try to install using pip3 there is no such package available. Trying to run 'import Domoticz' from IDLE returns "ModuleNotFoundError: No module named 'Domoticz'"
I'm suspecting that Domoticz package is not installed or found in any of the relevant paths. How do I get hold of the Domoticz python package if not found through pip or included in install binary? Or is there anyone how has other ideas why it is not working. Been searching like crazy for a solution but not been able to find similar issue.