Python mistakes in plugins

Python and python framework

Moderator: leecollings

Post Reply
svd71
Posts: 16
Joined: Saturday 09 January 2021 17:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python mistakes in plugins

Post by svd71 »

Hi all,

I had try to buil my own plugin and have problem python:

2026-01-04 13:47:55.608 Error: AlarmSirenaCamCtrl: (tMQTTalarm) failed to load 'plugin.py', Python Path used was '/home/svd/domoticz/plugins/TasmotaMQTTAlarmCtrl/:/usr/lib/python313.zip:/usr/lib/python3.13:/usr/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.13/dist-packages'.

About my environment:
RPi 3B with 1Gb, Trixie
Python 3.13.5
Domoticz Version: 2025.2

Is it something incompatible with Py3.13 ? What I need to do to fix it?

BR
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Python mistakes in plugins

Post by waltervl »

This is the only error you get from this? No more hints in the log?
Python 3.13 is supported.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
svd71
Posts: 16
Joined: Saturday 09 January 2021 17:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python mistakes in plugins

Post by svd71 »

Thank you for you message!

It's going from Domoticz-log.

This post(viewtopic.php?p=327194#p327194) shows little bit others:
Python3.13 does not work, but Python3.12 works fine.

I did it yesterday with installation of Python3.12 under pyenv.

BR.
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Python mistakes in plugins

Post by waltervl »

How do you do that, running a lower version of Python in Domoticz?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest