Raspbian version, betas and python plugins
Posted: Sunday 28 January 2018 13:37
I have recently been having a great deal of trouble with getting the python plugin system working with the beta releases of Domoticz. I had a RPi 2 running Stretch and the python plugin system would only work with the current stable version of Domoticz, every time I upgraded to the current beta releases, I got a 'segmentation fault' as soon as I enable either of the two python plugins I wanted to use, which were the BroadlinkRM2 plugin and the British Gas 'Hive' plugin. Running the stable version was OK but it did mean that I couldn't use the Aurora theme but I was worries that at some point the stable version would be updated which might mean that the plugins would break again or I would be forever stuck with an obsolete version.
So having read that compiling from source often gives a more stable version, I tried that, it took quite some time, involving mush trial and error, reading posts and asking for help, but finally I got a clean, working, freshly compiled Domoticz system, which promptly crashed as soon as I added the plugin!
Last week I purchase a new RPi3 and a couple of new SDCards, clean installed Raspbian Stretch lite, installed Domoticz (the easy way), upgraded to the current beta, installed the prerequisites, added the first python plugin and 'segmentation fault'. So I wiped the card, reinstalled Stretch, and compiled from source again, all worked until I added the python plugin and again 'segmentation fault'.
So just to see what would happen, I wiped the card and this time installed Raspbian Jessie lite, installed Domoticz from the precompiled binaries, updated to beta, installed the python plugin and it worked perfectly! So now I have a working beta version of Domoticz with the python plugins I want and it's been up for three days now with no errors at all.
Fine, but what concerns me is that some point in the near future Jessie is going to be deprecated in favour of Stretch, I really can't be the only person to be running Domoticz under Stretch with the python plugin system, other people must have tried the same and either had issues or got it working, so what exactly could I have been doing wrong all this time? I see that Jessie is using Python 3.4 whereas Stretch installs 3.5, could that be the issue?
I now have a spare Pi2 and some cards so I can try experimenting without messing up my 'production' system, but does anyone have any suggestions or thoughts on what I should try or look out for?
Many thanks in advance for any ideas
So having read that compiling from source often gives a more stable version, I tried that, it took quite some time, involving mush trial and error, reading posts and asking for help, but finally I got a clean, working, freshly compiled Domoticz system, which promptly crashed as soon as I added the plugin!
Last week I purchase a new RPi3 and a couple of new SDCards, clean installed Raspbian Stretch lite, installed Domoticz (the easy way), upgraded to the current beta, installed the prerequisites, added the first python plugin and 'segmentation fault'. So I wiped the card, reinstalled Stretch, and compiled from source again, all worked until I added the python plugin and again 'segmentation fault'.
So just to see what would happen, I wiped the card and this time installed Raspbian Jessie lite, installed Domoticz from the precompiled binaries, updated to beta, installed the python plugin and it worked perfectly! So now I have a working beta version of Domoticz with the python plugins I want and it's been up for three days now with no errors at all.
Fine, but what concerns me is that some point in the near future Jessie is going to be deprecated in favour of Stretch, I really can't be the only person to be running Domoticz under Stretch with the python plugin system, other people must have tried the same and either had issues or got it working, so what exactly could I have been doing wrong all this time? I see that Jessie is using Python 3.4 whereas Stretch installs 3.5, could that be the issue?
I now have a spare Pi2 and some cards so I can try experimenting without messing up my 'production' system, but does anyone have any suggestions or thoughts on what I should try or look out for?
Many thanks in advance for any ideas