Page 1 of 1

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

Posted: Saturday 18 May 2019 20:10
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.....

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

Posted: Saturday 18 May 2019 21:49
by freijn
try python3 -V :-) What version do you get?

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

Posted: Saturday 18 May 2019 23:04
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?

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

Posted: Monday 20 May 2019 19:47
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...

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

Posted: Monday 20 May 2019 20:11
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.