Page 1 of 1

Python domoticz package not found?

Posted: Saturday 12 July 2025 19:11
by ErikAS
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.

Re: Python domoticz package not found?

Posted: Saturday 12 July 2025 21:19
by waltervl
The Domoticz module published by Domoticz and not a real python module. So nothing to do about this. You cannot run a plugin seperate from Domoticz because of this.

But it looks like python 3.13 is not supported yet by Domoticz. So perhaps uninstall python and install version 3.12

Re: Python domoticz package not found?

Posted: Tuesday 15 July 2025 10:05
by ErikAS
Thanks Walter, my mistake entirely, reverting back to Python 3.11 and it all worked as intended! :D