EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
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
klontje
Posts: 38
Joined: Sunday 01 September 2013 13:16
Target OS: Windows
Domoticz version:
Contact:

EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by klontje » Sunday 27 August 2017 12:14

Hello all,

I know this has been discussed before but I really can't figure out what the problem is by going over the existing posts. I am running Domoticz V3.8367 on a Raspberry Pi 3 which is commissioned a while ago based on the Domoticz RPi image.

In my logs I get the following error/warning:

Code: Select all

 2017-08-27 11:58:01.057 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2017-08-27 11:58:01.057 EventSystem: Started
First thing I did was check if Python and Python libs were installed:

Code: Select all

[email protected]:/home/domoticz/domoticz# apt-get install python3 libpython3-dev libpython3.4-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython3-dev is already the newest version.
libpython3-dev set to manually installed.
libpython3.4-dev is already the newest version.
python3 is already the newest version.
an ls of my Python lib folders reveal that the right version is there:

Code: Select all

[email protected]:/home/domoticz/domoticz# ls -la /usr/lib/python
python2.6/ python2.7/ python3/   python3.4/
Also a force reinstall of python and libpython did not resolve this. I always use the Domoticz built-in updater to update to the latest beta version. I am not sure how long this error has been here but want to start working with a couple of the Python plugins.

User avatar
Westcott
Posts: 547
Joined: Tuesday 09 December 2014 18:04
Target OS: Raspberry Pi
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Westcott » Sunday 27 August 2017 12:26

I don't know if this will help you, but I had to add an entry to the bottom of my .bashrc file, just before the PYTHONPATH entry -

LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
Zwave - Sigma Z+ stick, Fibaro 2x FGSD002, FGMS001
Horstmann - 2x HRT4, 2x C-stat-11, 4x ASR-ZW, TKB 2x TZ56, 2x TZ68E
Max-EQ Cube, Valve, Neo 2x door
RFXtrx433E, RFlink - 1byone driveway, doorbell, Oregon and BangGood temp
Wifi - YeeLight RGB, 3x ESP8266

klontje
Posts: 38
Joined: Sunday 01 September 2013 13:16
Target OS: Windows
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by klontje » Sunday 27 August 2017 13:18

I tried that but it didn't work unfortunately.

Neutrino
Posts: 34
Joined: Sunday 08 May 2016 19:00
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Neutrino » Sunday 27 August 2017 18:18

Python is disabled in the last beta :
https://github.com/domoticz/domoticz/co ... 317c67804f
:(

User avatar
Dnpwwo
Posts: 630
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Dnpwwo » Monday 28 August 2017 10:58

@klontje,

The runtime library you need is libpython3.4 (or higher version). Did you have a look at http://www.domoticz.com/wiki/Linux#Prob ... ing_Python ?
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

Snowtiger
Posts: 83
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi
Domoticz version: 3.8363
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Snowtiger » Monday 28 August 2017 11:18

Dnpwwo wrote:@klontje,

The runtime library you need is libpython3.4 (or higher version). Did you have a look at http://www.domoticz.com/wiki/Linux#Prob ... ing_Python ?
Over here the same problem, just popping up since the last Bèta's and Python has always worked - so - this is not the solution - just tried it to be sure and output command :
libpython3.4 is already the newest version.


jmn4472
Posts: 2
Joined: Monday 28 August 2017 16:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by jmn4472 » Monday 28 August 2017 16:24

Hello all,

I have the same message since I upgraded Domoticz to version 3.8153.
I followed the recommandations to install Python 3.4 but this didn't avoid to see the message.
Domoticz continues to work correctly but this is not clean to have such message without real explanation.
Hope Domoticz team reads those posts and will propose something.
Regards to all
jmn4472.

User avatar
Conn-artist
Posts: 79
Joined: Saturday 12 July 2014 12:06
Target OS: Raspberry Pi
Domoticz version: 3.8367
Location: 127.0.0.1
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Conn-artist » Tuesday 29 August 2017 7:32

Hi,

Same here, after upgrading to #8367. Running Raspbian 'Jessie' on Raspberry Pi.

I tried the following:

- check that all packages are up to date
- check that Domoticz is using libpython3.4 (sudo lsof | grep libpython)
- check that python3 (actually 3.4) is the preferred Python version (sudo update-alternatives --config python)
- check that python3 appears in the $PATH before python2 (in /etc/init.d/domoticz.sh)

I then proceeded to compile Python 3.6.2 from source and use that one, but even though I can confirm that Domoticz uses '/usr/local/lib/libpython3.6m.so.1.0', the error about the event system remains.

Then I recompiled Domoticz from Git sources - but the error still remains.
--
Martijn

User avatar
Conn-artist
Posts: 79
Joined: Saturday 12 July 2014 12:06
Target OS: Raspberry Pi
Domoticz version: 3.8367
Location: 127.0.0.1
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Conn-artist » Tuesday 29 August 2017 8:03

Not sure if this is related to the troubles with Py and the event system, but in the blockly event editor wasn't there a checkbox behind the text Event active:?

This checkbox is gone now.

Edit: there seem to be more checkboxes/pulldown menus missing here and there in #8367:
- Instellingen / Plattegrond / Algemeen
- Instellingen / Plattegrond / Laat waarden zien
- Instellingen Gebeurtenissen / Event Systeem
- all 'Actief' checkboxes in 'Notificaties'
- the 'Actief' checkbox in 'E-mail'
--
Martijn

rickvanakkeren
Posts: 36
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by rickvanakkeren » Tuesday 29 August 2017 13:36

Neutrino wrote:
Sunday 27 August 2017 18:18
Python is disabled in the last beta :
https://github.com/domoticz/domoticz/co ... 317c67804f
:(
This one seems quite important... Having the same problem, updating, reinstalling, etc doesn't help...

Nickkkk72
Posts: 9
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Nickkkk72 » Tuesday 29 August 2017 14:11

Same issue... incredible that Pyhton is suddenly disable in latest beta release...
EventSystem - Python: Failed dynamic library load...
install the latest libpython3.x library that is available for your platform.

All python plugins are disable so my Domoticz is so useless now...
Hope Python will be enable quickly in next release.
Everybody is in this situation ?

deennoo
Posts: 914
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by deennoo » Tuesday 29 August 2017 14:33

Beta is beta...not a real good idea to run it for real !! Following beta mean that every can be brokend from day to another...
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

Nickkkk72
Posts: 9
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Nickkkk72 » Tuesday 29 August 2017 14:56

Same issue after reinstall in Stable Release for me. (from sources)

Nickkkk72
Posts: 9
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Nickkkk72 » Tuesday 29 August 2017 22:16

Hi,
A second try of :

Code: Select all

cd dev-domoticz
./updatedomo
solved !

HTTP notifications are now OK (via Pilot app),
No more error message about Python librairies at startup,
And every Py plugins works !

Hope this help.

User avatar
Conn-artist
Posts: 79
Joined: Saturday 12 July 2014 12:06
Target OS: Raspberry Pi
Domoticz version: 3.8367
Location: 127.0.0.1
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Conn-artist » Wednesday 30 August 2017 10:24

Not fixed quite yet.

I built 3.8373 on RPi3/jessie - the event system is working again but the Python error in the log, which the OP refers to, remained :(
--
Martijn

Nickkkk72
Posts: 9
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Nickkkk72 » Wednesday 30 August 2017 10:36

Hello, for your information, when i rebuild yesterday, after the ./updatedomo my release was 3.8153, set to beta and everything works fine since yesterday. I didn't launch any upgrade since that and make à SD backup.
I don't see any issue.

jmn4472
Posts: 2
Joined: Monday 28 August 2017 16:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by jmn4472 » Wednesday 30 August 2017 15:02

rickvanakkeren wrote:
Tuesday 29 August 2017 13:36
Neutrino wrote:
Sunday 27 August 2017 18:18
Python is disabled in the last beta :
https://github.com/domoticz/domoticz/co ... 317c67804f
:(
This one seems quite important... Having the same problem, updating, reinstalling, etc doesn't help...
Hi all,
The link to Github should be the solution?
I don't know how to treat this? Someone has an idea?
Regards,
jmn4472

User avatar
Conn-artist
Posts: 79
Joined: Saturday 12 July 2014 12:06
Target OS: Raspberry Pi
Domoticz version: 3.8367
Location: 127.0.0.1
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Conn-artist » Wednesday 30 August 2017 17:23

jmn4472 wrote:
Wednesday 30 August 2017 15:02
The link to Github should be the solution?
I don't know how to treat this? Someone has an idea?
No. The link is the explanation as to why the event system isn't working.

I guess the solution would be to go back to the latest stable release or wait for a fix to appear in Git ;)
--
Martijn

Ericv
Posts: 50
Joined: Saturday 28 January 2017 13:09
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Ericv » Thursday 31 August 2017 9:24

Hello all,

RPi3, running on latest stable version V3.8153.

I too get this error message. After a 'restart computer' the message appears twice in the Domoticz log.
Domoticz seems to work OK. I only have a lot of error messages from Weather Underground, but i do not know if this is related to the libpyhton issue.
Yesterday i did an (apt-get) install of libpython3.4. Error messages are still there.

Solved: today (1 Sept) I found that libpython3.4-dev was not installed. Now the error message is not there anymore, plug-in system started. 8-)

Eric
Last edited by Ericv on Friday 01 September 2017 21:36, edited 2 times in total.
Raspberry Pi3; Razberry V2; RFlink; OTGW: PIco UPS HV3.0

Nickkkk72
Posts: 9
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available

Post by Nickkkk72 » Thursday 31 August 2017 10:13

:? I'm a little bit lost...
I don't know what is the best way to get a stable system... (Python issue, crash at startup, rflink issues, plugins issues, etc...).
Should i try to reinstall another time with older release...? leave the beta mode for stable release...(already done) ? leave Jessie/Strech for Ubuntu ? Sources vs prebuild... ? Leave my Rpi3 for Windows system... ? Try going on Jeedom for testing... ?
I don't understand the situation. It seem we are a lot in the frog and having issues but i can't find any solutions here or somewhere else and no real informations about the team.
I love the situation one month ago, where everything was stable for me.
If you have any advice... Thanks a lot in advance

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests