There is something that I don't understand...

Python and python framework

Moderator: leecollings

Post Reply
corederoma82
Posts: 85
Joined: Saturday 14 January 2017 21:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

There is something that I don't understand...

Post by corederoma82 »

Hi all,
There is something that I don't understand about phyton plugin.
My raspberry is running python version 2.7.9 (I check it with "python -V" command);
I installed Kodi plugin, the description said that it need python version 3.4 or higher.....but it it's functioning very well..... :?
Then I installed plugin for broadlink rm2 and plugin iCAL, and for both is requesting phyton 3.xx or higher, but when I install it, Domoticz crashes
So i tried another raspberry for test with python 3.7, but here none of the three plugins works.....
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: There is something that I don't understand...

Post by freijn »

try python3 -V :-) What version do you get?
corederoma82
Posts: 85
Joined: Saturday 14 January 2017 21:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: There is something that I don't understand...

Post by corederoma82 »

freijn wrote: Saturday 18 May 2019 21:49 try python3 -V :-) What version do you get?
OH ok... 3.4.2, so why others plugins don't work properly?
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: There is something that I don't understand...

Post by freijn »

To my knowledge of python I can only tell that version 2 and 3 some functions are not same and hence do not run... sorry...
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: There is something that I don't understand...

Post by Thorgal789 »

Domoticz use a python framework, so you can have "magical" action you don't have with pure python.
Take a look more carefully on plugin page
For exemple for broadlink rm2
Python version 3.x required & Domoticz version 3.90xx or greater. Note: I found Python 3.4 does not work but python 3.5 does. This may have creeped in on later plugin versions, I am on plugin 4.1
pyaes will be used to connect
Caution: if you have pycrypto & pycryptodome modules installed, the plugin will not work.
highter version doesn't mean better version.

Ask directly the dev of the plugin if you still have problem, he have a topic on this forum.
Post Reply

Who is online

Users browsing this forum: rini52 and 1 guest