The issue with plugins
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
-
- Posts: 3
- Joined: Saturday 30 December 2023 7:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Contact:
The issue with plugins
Version: latest stabable version
Platform: Raspian Bullseye - 32bit lite
Plugin/Hardware: Rpi4
Description:
I installed a fresh installation of Domoticz and when I added the plugin for Tapo TP-Link I got error - failed to load 'xxxx'. I tried another plugin for Toyota and I got the same error.
I used these links for plugins
https://www.domoticz.com/wiki/Plugins
I checked the using python plugins according to the wiki
https://www.domoticz.com/wiki/Using_Python_plugins
Logs are in the attachment.
What is it wrong in installation?
Thank you for hlep.
Platform: Raspian Bullseye - 32bit lite
Plugin/Hardware: Rpi4
Description:
I installed a fresh installation of Domoticz and when I added the plugin for Tapo TP-Link I got error - failed to load 'xxxx'. I tried another plugin for Toyota and I got the same error.
I used these links for plugins
https://www.domoticz.com/wiki/Plugins
I checked the using python plugins according to the wiki
https://www.domoticz.com/wiki/Using_Python_plugins
Logs are in the attachment.
What is it wrong in installation?
Thank you for hlep.
- Attachments
-
- logs.txt
- (2.69 KiB) Downloaded 31 times
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
Try to install the python modules with sudo, see https://www.domoticz.com/wiki/Using_Pyt ... ules_Fails
If you are on bookworm there are perhaps other issues
If you are on bookworm there are perhaps other issues
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 612
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: The issue with plugins
Right you are.
I'm on bookworm and not able to git clone anything plus that my httpresponses fail since about a week.
Example:
Code: Select all
Error opening url: http://weerlive.nl/api/json-data-10min.php?key=f1a3b47b8&locatie=52.262779,6.71234
2023-12-30 12:50:00.234 Error: dzVents: Error: (3.1.8) Weerlive DEBUG data: HTTP/1.1 response: 6 ==>> Couldn't resolve host name
In the browser it works flawless.
Bugs bug me.
-
- Posts: 3
- Joined: Saturday 30 December 2023 7:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Contact:
Re: The issue with plugins
Yes, I tried but without success.waltervl wrote: ↑Saturday 30 December 2023 9:23 Try to install the python modules with sudo, see https://www.domoticz.com/wiki/Using_Pyt ... ules_Fails
If you are on bookworm there are perhaps other issues
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
Are you on bookworm RPI OS?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
Python on Bookworm is using venv (virtual environments) which Domoticz does not support. This could lead into installation issues.
For solution see for example viewtopic.php?f=65&t=42823
or add --break-system-packages at the end of the pip3 install module or requirements command line:
For solution see for example viewtopic.php?f=65&t=42823
or add --break-system-packages at the end of the pip3 install module or requirements command line:
Code: Select all
sudo pip3 install -r requirements.txt --break-system-packages
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: The issue with plugins
Bookworm did not changed anything (on top of Debian enforced python lib paths priorities to minimize pip/apt mixup issues on system stuff built on python) IMO.
But would be nice indeed to be able to avoid mixing plugin dependencies with system ones without needing some hacks...
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
Indeed it is a Debian 12 issue (and bookworm is based on Debian 12). So no it is not really a bookworm issue but for a lot of RPi users it starts when updating their OS to Bookworm....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: The issue with plugins
Hello
What issues seems linked to 12/Bookworm? Python ones?
IMO here there is a network connection issue (or git was not reinstalled) as the user was not able to git clone also. So installing requirements etc may also have failed.
Take care that installing plugins in a venv does not need sudo as required dependancies are not installed in system directories.
Only stuff that may remain problematic with my current linked hack is the in-plugin upgrade. IMO better use a CLI procedure from activated venv...
What issues seems linked to 12/Bookworm? Python ones?
IMO here there is a network connection issue (or git was not reinstalled) as the user was not able to git clone also. So installing requirements etc may also have failed.
Take care that installing plugins in a venv does not need sudo as required dependancies are not installed in system directories.
Only stuff that may remain problematic with my current linked hack is the in-plugin upgrade. IMO better use a CLI procedure from activated venv...
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
The issue in my opinion is that in Bookwork (Debian 12) Python is defaulting to use venv (do not ask my why and how). Which gives installation issues when plugins needs extra modules to be installed.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 660
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: The issue with plugins
Did not noticed such change, either on PC (with pure Debian 12 install) or RPI (with derived Raspberry OS). Only deviation in Debian based systems for Python remains usual paths segregation, mostly to avoid breaking any python-XXX apt installed stuff (including some system tools) with XXX that may also be installed using pip for instance (and lack distribution repos coherency ensured by maintainers):
https://wiki.debian.org/Python#Deviations_from_upstream
Third party Python software installed from Debian packages goes into dist-packages, not site-packages. This is to reduce conflict between the system Python, and any from-source Python build you might install manually.
(...)
distutils setup scripts install files in /usr/local/ not sys.prefix (which is normally /usr/). This is because /usr/ is reserved for files installed from Debian packages. Note that /usr/local/lib/pythonX.Y/dist-packages is in sys.path so that modules not installed from Debian packages can still be accessed by the system Python.
- waltervl
- Posts: 5851
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: The issue with plugins
Here an example of a user with a fresh install, new OS and python module install issues: viewtopic.php?p=321312#p321312
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest