Page 1 of 1

Python plugins disabled in latest betas... any hope for a fix ?

Posted: Sunday 03 September 2017 19:09
by Logread
I understand the framework was disabled in beta builds by Gizmocuz on August 26... I assume this was in response to the crashes that appeared after some code change during that month (that I experienced first hand myself) ?

Any hope to see this fixed and python plugins again available going forward in all versions of Domoticz ?

Not that I need to upgrade now, but I like the Python plugin framework so much that I want to make sure it remains a core feature of Domoticz over time :D

Re: Python plugins disabled in latest betas... any hope for a fix ?

Posted: Monday 04 September 2017 11:16
by Dnpwwo
@Logread,

I believe some users on the new Raspbian Stretch OS had problems and I saw a sample stack dump from one but never saw any forum posts so don't know if other people were impacted. I have been running Stretch for a few weeks and it seems fine for me which means I can't really look into the other issue without more details.

A few experienced users have reported that building from source on RPi has been a lot more stable than using the pre-built betas for the last few months so if you want to try that you can (http://www.domoticz.com/wiki/Linux). There is a 'python-enabled' branch you can switch to using the 'git checkout python-enabled' command after cloning the repositiory.

Glad to hear you like the framework :!:

Re: Python plugins disabled in latest betas... any hope for a fix ?

Posted: Monday 04 September 2017 13:54
by Logread
@Dnpwwo,

Thanks for your feedback. I think we are not talking about the same issue (I was one of those users who at some point found out that the pre-built binaries did not work well for some versions, unlike self compiled binaries)... I was actually referring to the commit made by Gizmocuz on august 26 with the title "Disabled Python plugin for now" (https://github.com/domoticz/domoticz/co ... 317c67804f) that left me under the impression that the plugin framework was turned off...

But I just upgraded my development/test domoticz system (running in a Debian VM on a Windows PC) to today's 3.8356 beta pre-built and see that my plugins work so far... So I guess my concern is pointless and I should have checked that before posting :oops:

Re: Python plugins disabled in latest betas... any hope for a fix ?

Posted: Thursday 07 September 2017 12:20
by Logread
I am restarting this thread since I just saw the following after I upgraded one of my live systems on a Raspberry Pi using the built-in upgrade to the latest beta:

Code: Select all

2017-09-07 11:51:30.246 Domoticz V3.8389 (c)2012-2017 GizMoCuz
2017-09-07 11:51:30.246 Build Hash: b4b59b07, Date: 2017-09-05 20:21:33
...
2017-09-07 11:51:30.340 PluginSystem: 'Piles' Registration ignored, Plugins are not enabled.
2017-09-07 11:51:30.340 PluginSystem: 'Thermostat Séjour' Registration ignored, Plugins are not enabled.
So none of the python plugins on that system are working... confirming my earlier comments about the changes recently made by Gizmocuz. Glad I always make full backups before any upgrade of a live system.

Re: Python plugins disabled in latest betas... any hope for a fix ?

Posted: Friday 08 September 2017 16:17
by imdos
I'm experiencing the same problems. It was mentioned here viewtopic.php?f=65&t=16116 as well.

domoticz.V3.8355
2017-09-08 15:34:23.322 EventSystem: reset all events...
2017-09-08 15:34:23.323 EventSystem: reset all device statuses...
2017-09-08 15:34:23.499 Python EventSystem: Module not found - Trying to initialize.
2017-09-08 15:34:23.499 Python EventSystem: Initalizing event module.
2017-09-08 15:34:23.499 EventSystem: Started
2017-09-08 15:34:23.499 EventSystem: Queue thread started...

domoticz.V3.8389
2017-09-08 15:28:22.961 EventSystem: reset all events...
2017-09-08 15:28:22.962 EventSystem: reset all device statuses...
2017-09-08 15:28:23.036 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2017-09-08 15:28:23.036 EventSystem: Started

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

apt-get updated & upgraded as well.

apt search python3.|grep installed
Spoiler: show
dh-python/oldstable,now 1.20141111-2 all [installed,automatic]
ipython3/oldstable,now 2.3.0-2 all [installed]
libpython3-all-dev/oldstable,now 3.4.2-2 armhf [installed]
libpython3-dev/oldstable,now 3.4.2-2 armhf [installed]
libpython3-stdlib/oldstable,now 3.4.2-2 armhf [installed,automatic]
libpython3.4/oldstable,now 3.4.2-1 armhf [installed]
libpython3.4-dev/oldstable,now 3.4.2-1 armhf [installed,automatic]
libpython3.4-minimal/oldstable,now 3.4.2-1 armhf [installed,automatic]
libpython3.4-stdlib/oldstable,now 3.4.2-1 armhf [installed]
python3/oldstable,now 3.4.2-2 armhf [installed,automatic]
python3-chardet/oldstable,now 2.3.0-1 all [installed,automatic]
python3-colorama/oldstable,now 0.3.2-1 all [installed,automatic]
python3-decorator/oldstable,now 3.4.0-2 all [installed,automatic]
python3-dev/oldstable,now 3.4.2-2 armhf [installed]
python3-distlib/oldstable,now 0.1.9-1 all [installed,automatic]
python3-html5lib/oldstable,now 0.999-3 all [installed,automatic]
python3-minimal/oldstable,now 3.4.2-2 armhf [installed,automatic]
python3-pip/oldstable,now 1.5.6-5 all [installed]
python3-pkg-resources/oldstable,now 5.5.1-1 all [installed,automatic]
python3-requests/oldstable,now 2.4.3-6 all [installed,automatic]
python3-setuptools/oldstable,now 5.5.1-1 all [installed,automatic]
python3-simplegeneric/oldstable,now 0.8.1-1 all [installed,automatic]
python3-six/oldstable,now 1.8.0-1 all [installed,automatic]
python3-urllib3/oldstable,now 1.9.1-3 all [installed]
python3-wheel/oldstable,now 0.24.0-1 all [installed,automatic]
python3.4/oldstable,now 3.4.2-1 armhf [installed,automatic]
python3.4-dev/oldstable,now 3.4.2-1 armhf [installed,automatic]
python3.4-minimal/oldstable,now 3.4.2-1 armhf [installed,automatic]
But I don't want to compile python 3.5(.2) on my Pi. Should I add another repo? Since I don't would like to compile Domoticz myself as well.

Re: Python plugins disabled in latest betas... any hope for a fix ?

Posted: Sunday 10 September 2017 17:44
by moroen
When python-plugins got disabled in the beta-branch, the python-event system got disabled as well, since both uses the same dynamically loaded library. So python event-scripts fails regardless of whether python is installed or not. When and if python-plugins and python-events get reinstated, I have no idea...

Regards,
M