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

Python and python framework

Moderator: leecollings

Post Reply
Logread
Posts: 228
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post 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
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

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

Post 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 :!:
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
Logread
Posts: 228
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post 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:
Logread
Posts: 228
Joined: Sunday 28 August 2016 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

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

Post 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.
imdos
Posts: 34
Joined: Thursday 03 August 2017 21:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

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

Post 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.
Making use of: Raspbian(SSD), dz Beta, Woonveilig, Z-Wave(alarm+multi-sensor), RFLink(blinds), P1, Yeelight, Xiaomi temp sensors, Tasmota(SonoFF, Blitzwolf SHP2, Shelly1)
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest