Page 1 of 1

PluginSystem: Failed dynamic library load

Posted: Friday 10 January 2020 21:49
by Marcus22
Hi,

My Domoticz V4.10717 is running well on my Pi for a while now. I am looking to add functionality using Python Plugins, but I have trouble to get it working.

I've followed the Wiki on the Git of the plugin I'd like to use. And of course https://www.domoticz.com/wiki/Using_Python_plugins.

The problem seems to be that the PluginSystem doesn't start. See log at startup:
Spoiler: show
2020-01-10 20:10:32.817 Status: Domoticz V4.10717 (c)2012-2019 GizMoCuz
2020-01-10 20:10:32.819 Status: Build Hash: b38b49e5, Date: 2019-05-09 13:04:08
2020-01-10 20:10:32.820 Status: Startup Path: /home/pi/domoticz/
2020-01-10 20:10:32.858 Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2020-01-10 20:10:32.870 Status: WebServer(SSL) started on address: :: with port 443
2020-01-10 20:10:32.873 Status: TCPServer: shared server started...
2020-01-10 20:10:32.873 Status: RxQueue: queue worker started...
2020-01-10 20:10:34.874 Status: P1 Smart Meter: Using serial port: /dev/ttyUSB0
2020-01-10 20:10:34.877 Status: P1 Smart Meter: Worker started...
2020-01-10 20:10:34.878 Status: EventSystem: reset all events...
2020-01-10 20:10:34.879 Status: EventSystem: reset all device statuses...
2020-01-10 20:10:34.929 Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2020-01-10 20:10:34.930 Status: EventSystem: Started
2020-01-10 20:10:34.930 Status: EventSystem: Queue thread started...
2020-01-10 20:10:35.036 Status: P1 Smart Meter: Meter reports as DSMR 4.2
2020-01-10 20:10:35.374 Status: OpenZWave: using config in: /home/pi/domoticz/Config/
2020-01-10 20:10:35.376 Status: OpenZWave: Starting...
2020-01-10 20:10:35.376 Status: OpenZWave: Version: 1.4-3335-g74e05982-dirty
2020-01-10 20:10:35.446 Status: P1 Smart Meter: Found gas meter on M-Bus channel 1
2020-01-10 20:10:35.670 Status: OpenZWave: Driver Ready
2020-01-10 20:10:35.879 Status: MQTT: Connecting to 192.168.178.70:1883
2020-01-10 20:10:36.014 Status: MQTT: connected to: 192.168.178.70:1883
2020-01-10 20:10:36.114 Status: MQTT: Subscribed

Code: Select all

PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
Python is installed:

Code: Select all

pi@raspberrypi:~ $ python3 -V
Python 3.7.3
Libpython as well:

Code: Select all

pi@raspberrypi:~ $  dpkg --get-selections | grep libpython
libpython-stdlib:armhf                          install
libpython2-stdlib:armhf                         install
libpython2.7-minimal:armhf                      install
libpython2.7-stdlib:armhf                       install
libpython3-stdlib:armhf                         install
libpython3.6:armhf                              install
libpython3.6-minimal:armhf                      install
libpython3.6-stdlib:armhf                       install
libpython3.7:armhf                              install
libpython3.7-minimal:armhf                      install
libpython3.7-stdlib:armhf                       install
pi@raspberrypi:~ $
In November I made a clean install of Raspbian Buster and Domoticz. The only extra I installed is Mosquitto.
I am trying to get a lot of MQTT information into Domoticz using https://github.com/bbqkees/ems-esp-domoticz-plugin.

Any suggestions to get the PluginSystem (and EventsSystem) working?

Re: PluginSystem: Failed dynamic library load

Posted: Friday 10 January 2020 22:33
by sancla
https://sancla.com/domoticz/how-to-domo ... n-manager/

Of you need any more help, just let me know...

Sent from mobile phone


Re: PluginSystem: Failed dynamic library load

Posted: Friday 10 January 2020 22:35
by sancla
sudo apt-get install python3.7 libpython3.7 python3.7-dev -y

sudo systemctl restart domoticz.service

Sent from mobile phone



Re: PluginSystem: Failed dynamic library load

Posted: Friday 10 January 2020 22:56
by Marcus22
Thanks sancla! That did the trick.

I tried re-installing Python before. What is different in your solution? The dev version?

Re: PluginSystem: Failed dynamic library load

Posted: Friday 10 January 2020 23:56
by sancla
Jup, the dev version ;-)

Sent from mobile phone


Re: PluginSystem: Failed dynamic library load

Posted: Saturday 21 March 2020 20:21
by superelch
Same Probleme here (buster/domoticz beta)
but i get a error trying <sudo apt-get install python3.7 libpython3.7 python3.7-dev -y>


pi@raspberrypi:~ $ which python
/usr/bin/python
pi@raspberrypi:~ $ sudo apt-get install python3.7 libpython3.7 python3.7-dev -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython3.7 is already the newest version (3.7.3-2+deb10u1).
python3.7 is already the newest version (3.7.3-2+deb10u1).
The following additional packages will be installed:
libpython3.7-dev
The following NEW packages will be installed:
libpython3.7-dev python3.7-dev
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B/47.7 MB of archives.
After this operation, 71.3 MB of additional disk space will be used.
/usr/bin/apt-listchanges: 1: /usr/bin/apt-listchanges: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒........▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒: File name too long
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10
pi@raspberrypi:~ $

i need Pyhton for my new conbee2 stick :(

any idea?

Re: PluginSystem: Failed dynamic library load

Posted: Saturday 21 March 2020 20:35
by sancla
What distro are you running?

You could do a apt update && apt upgrade so you have the latest distro updates...

Re: PluginSystem: Failed dynamic library load

Posted: Saturday 21 March 2020 23:01
by superelch
Buster with Kernelversion 4.19.97-v71+

hm....


pi@raspberrypi:~ $ sudo apt update && apt upgrade -y
/usr/bin/apt: 1: /usr/bin/apt: ▒▒▒▒▒▒▒▒▒▒▒...(many more of this).....▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒: File name too long

obviously a deeper problem with buster
i am cluelessly...even with google

Re: PluginSystem: Failed dynamic library load

Posted: Saturday 21 March 2020 23:05
by sancla
Hmmmm, never experienced this error myself.

Apt I using the sources.list and there are multiple guides to be found on the internet that instructs user to change this.

Could that be related?
Did you perhaps add different sources?

If you want to check, these are the default values:

https://linuxconfig.org/debian-apt-get- ... urces-list

Just comment out everything you don't trust in the sources.list and try to run the apt commands again.

Re: PluginSystem: Failed dynamic library load

Posted: Tuesday 24 March 2020 22:41
by superelch
thanks a lot for your quick respons and support.
but finaly i gave up and did a clean start.
enough time right now ;-)

Re: PluginSystem: Failed dynamic library load

Posted: Wednesday 25 March 2020 11:27
by sancla
Fair enough!

Just to be sure, there are ways to create a backup and even a live system upgrade you could execute before upgrading. That way, you can always do a rollback is necessary.

https://sancla.com/domoticz/how-to-back ... duplicati/

Re: PluginSystem: Failed dynamic library load

Posted: Sunday 06 February 2022 9:23
by marigo
For Raspbian Bullseye it is:

Code: Select all

apt update
apt-get install python3.9 libpython3.9 python3.9-dev -y