Python Plugin: Broadlink RM2 V3

Python and python framework

Moderator: leecollings

Post Reply
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Python Plugin: Broadlink RM2 V3

Post by zak45 »

Hi all,

Ver 3 released :
work with new python framework code
remote control added ( Kodi like )
broadlink module 0.5.0 necessary
work with standard pyaes now
...

Domoticz 3.8xxx necessary

For already installed
to upgrade:
replace plugin.py
update broadlink 0.3.0 to 0.5.0 ( pip --install --upgrade) e.g. : pip install broadlink --upgrade
re start Domoticz

For new installation just follow wiki

wiki:
http://www.domoticz.com/wiki/Plugins/BroadlinkRM2.html
Last edited by zak45 on Monday 26 June 2017 12:56, edited 3 times in total.
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

Thanks, it looks like i got everything installed and updated, tomorrow il receive my Broadlink RM Mini 3 Black Bean.
Cant wait to try it out :D
andi216
Posts: 46
Joined: Tuesday 14 March 2017 13:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by andi216 »

Hello
I copied the new plugin.py in /home/pi/domoticz/plugins/Broadlink
But I can not upgrade. I do not know. Where am I wrong? (rpi v2 , domoticz v3.8007)

pi@raspberrypi:~/domoticz/plugins/Broadlink $ pip --install --upgrade
Usage:
pip <command> [options]
no such option: --install
pi@raspberrypi:~/domoticz/plugins/Broadlink $

Log error
2017-06-25 19:22:25.811 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Broadlink/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5/:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-06-25 19:22:25.811 Error: (Broadlink RM2) Module Import failed, exception: 'ImportError'
2017-06-25 19:22:25.811 Error: (Broadlink RM2) Module Import failed: ' Name: broadlink'
2017-06-25 19:23:30.724 Error: Broadlink RM2 hardware (12) thread seems to have ended unexpectedly
2017-06-25 19:24:00.735 Error: Broadlink RM2 hardware (12) thread seems to have ended unexpectedly
2017-06-25 19:24:30.745 Error: Broadlink RM2 hardware (12) thread seems to have ended unexpectedly
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

Here is what i did:
i downloaded the new braodlink version from his dropbox: https://www.dropbox.com/sh/htyghey9e402 ... ar.gz?dl=0
tar -xvzf broadlink-0.5.tar.gz
pi@raspberrypi:~/broadlink $ sudo pip3 install broadlink-0.5/
Processing ./broadlink-0.5
Requirement already satisfied: pycrypto==2.6.1 in /usr/lib/python3/dist-packages (from broadlink==0.5)
Building wheels for collected packages: broadlink
Running setup.py bdist_wheel for broadlink ... done
Stored in directory: /root/.cache/pip/wheels/54/d4/84/0cce0286d9c877784527a3a9d951b0dbb9676fd5ec3eff5770
Successfully built broadlink
Installing collected packages: broadlink
Found existing installation: broadlink 0.3
Uninstalling broadlink-0.3:
Successfully uninstalled broadlink-0.3
Successfully installed broadlink-0.5

and downloaded the new plugin.py
User avatar
michaldobrotka
Posts: 50
Joined: Sunday 01 November 2015 17:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by michaldobrotka »

@zak45
Thank you so much! Finally the life is fun again :lol: :lol: :lol:
Domoticz on Raspi 3 and slave on ZeroW (running only with Broadlink plugin), Serial Mysensors GW on Arduino nano, Broadlink RM2, Rehau CO2 USB Stick, RF link 433 MHz, 2x Amazon Echo Dot (Controlicz), ESP2866 witk Espeasy, Sonoff
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

hi Zak,i've install new beta 3.8007,new package Setup.exe from dropbox,install work fine and in Domoticz\plugins\ there are Broadlink file but in Domoticz nothing happen,Broadlink HW not appears.
prb.jpg
prb.jpg (22.77 KiB) Viewed 13928 times
Can you help me please?!
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Andree wrote:hi Zak,i've install new beta 3.8007,new package Setup.exe from dropbox,install work fine and in Domoticz\plugins\ there are Broadlink file but in Domoticz nothing happen,Broadlink HW not appears.
prb.jpg
Can you help me please?!
try to restart your Domoticz.
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

Already done many times!
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Andree wrote:Already done many times!
ok, need your Domoticz log file
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

I checked it now..
"2017-06-26 14:20:16.273 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform."
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

python 3.x is a pre request.
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

obviously,python 3.5.2 installed before and now update to 3.5.3,same of your wiki but same things.
2017-06-26 17:51:56.184 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

Andree wrote:obviously,python 3.5.2 installed before and now update to 3.5.3,same of your wiki but same things.
2017-06-26 17:51:56.184 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
http://www.domoticz.com/forum/viewtopic ... 20#p110486
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

Hey, i am getting this error, i hope you can help me.

Code: Select all

2017-06-26 20:48:35.238 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2017-06-26 20:48:35.238 Error: (Braudlink remote m3 mini) Module Import failed, exception: 'ImportError'
2017-06-26 20:48:35.238 Error: (Braudlink remote m3 mini) Module Import failed: ' Name: broadlink'
But the file is there, here is the output when i run it:

Code: Select all

pi@raspberrypi:~ $ python /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py
Traceback (most recent call last):
  File "/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py", line 47, in <module>
    import Domoticz
ImportError: No module named Domoticz
pi@raspberrypi:~ $
Did i forgot something?
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

@Phantom
See the wiki: linux specific....
maybe something like that :
sudo cp -r /usr/local/lib/python3.4/dist-packages/broadlink /usr/lib/python3.4/
need to be adapted at you environnement, of course.
User avatar
rafal
Posts: 22
Joined: Sunday 13 March 2016 12:45
Target OS: Windows
Domoticz version: latest
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by rafal »

Hello,


instalation error on windows 7 platform, domoticz V 3.8007, setup run with admin right

any idea?


"Broadlink RM2 python plugin install for Win"
" this need to be run with admin right "
""
""
"Search python version"
Python 3.5.2
" main module used by the plugin"
"Python version : " 35
Collecting broadlink
Using cached broadlink-0.5.tar.gz
Collecting pycrypto==2.6.1 (from broadlink)
Using cached pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto, broadlink
Running setup.py install for pycrypto ... error
Complete output from command "c:\program files (x86)\python35-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\bed
narzr\\AppData\\Local\\Temp\\pip-build-f6avdhng\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n
', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\bednarzr\AppData\Local\Temp\pip-rx0m4lk3-record\install-
record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win32-3.5\Crypto
copying lib\Crypto\__init__.py -> build\lib.win32-3.5\Crypto
creating build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\hashalgo.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win32-3.5\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win32-3.5\Crypto\Hash
creating build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\XOR.py -> build\lib.win32-3.5\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win32-3.5\Crypto\Cipher
creating build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\randpool.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\winrandom.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win32-3.5\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win32-3.5\Crypto\Util
creating build\lib.win32-3.5\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win32-3.5\Crypto\Random
copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win32-3.5\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win32-3.5\Crypto\Random
creating build\lib.win32-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win32-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win32-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win32-3.5\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win32-3.5\Crypto\Random\Fortuna
creating build\lib.win32-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win32-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win32-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win32-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win32-3.5\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win32-3.5\Crypto\Random\OSRNG
creating build\lib.win32-3.5\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win32-3.5\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest
creating build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Cipher
creating build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Hash
creating build\lib.win32-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win32-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win32-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win32-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win32-3.5\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Protocol
creating build\lib.win32-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win32-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win32-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win32-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win32-3.5\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\PublicKey
creating build\lib.win32-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win32-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win32-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win32-3.5\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Random
creating build\lib.win32-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\Fortuna
creating build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Random\OSRNG
creating build\lib.win32-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win32-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win32-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win32-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win32-3.5\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Util
creating build\lib.win32-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win32-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win32-3.5\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win32-3.5\Crypto\SelfTest\Signature
creating build\lib.win32-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win32-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win32-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win32-3.5\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win32-3.5\Crypto\Protocol
creating build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win32-3.5\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win32-3.5\Crypto\PublicKey
creating build\lib.win32-3.5\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win32-3.5\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win32-3.5\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win32-3.5\Crypto\Signature
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat

----------------------------------------
Command ""c:\program files (x86)\python35-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\rafal\\AppData\\Local\\T
emp\\pip-build-f6avdhng\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(
compile(code, __file__, 'exec'))" install --record C:\Users\rafal\AppData\Local\Temp\pip-rx0m4lk3-record\install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in C:\Users\rafal\AppData\Local\Temp\pip-build-f6avdhng\pycrypto\
""
"ERROR: broadlink installation error"
Please press any key to continue...
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Andree »

zak45 wrote:
Andree wrote:obviously,python 3.5.2 installed before and now update to 3.5.3,same of your wiki but same things.
2017-06-26 17:51:56.184 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
http://www.domoticz.com/forum/viewtopic ... 20#p110486
Hi Zak,i've re-intall python 3.5.3 with same setting but nothing change,same problem...
jackslayter
Posts: 59
Joined: Tuesday 07 October 2014 11:00
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: France RA
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by jackslayter »

try (use the correct dir for python)

Code: Select all

cd /home/pi
sudo rm -r /usr/local/lib/python3.4/dist-packages/broadlink*
git clone https://github.com/mjg59/python-broadlink
sudo pip3 install python-broadlink/
sudo cp -r /usr/local/lib/python3.4/dist-packages/broadlink /usr/lib/python3.4/
sudo systemctl restart domoticz.service
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by zak45 »

rafal wrote:Hello,


instalation error on windows 7 platform, domoticz V 3.8007, setup run with admin right

any idea?


"Broadlink RM2 python plugin install for Win"
" this need to be run with admin right "
""
""
"Search python version"
Python 3.5.2
" main module used by the plugin"
"Python version : " 35
Collecting broadlink
Using cached broadlink-0.5.tar.gz
Collecting pycrypto==2.6.1 (from broadlink)
Using cached pycrypto-2.6.1.tar.gz
Installing collected packages: pycrypto, broadlink
Running setup.py install for pycrypto ... error
Complete output from command "c:\program files (x86)\python35-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\bed
narzr\\AppData\\Local\\Temp\\pip-build-f6avdhng\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n
', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\bednarzr\AppData\Local\Temp\pip-rx0m4lk3-record\install-
record.txt --single-version-externally-managed --compile:
error: Unable to find vcvarsall.bat

----------------------------------------
Command ""c:\program files (x86)\python35-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\rafal\\AppData\\Local\\T
emp\\pip-build-f6avdhng\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(
compile(code, __file__, 'exec'))" install --record C:\Users\rafal\AppData\Local\Temp\pip-rx0m4lk3-record\install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in C:\Users\rafal\AppData\Local\Temp\pip-build-f6avdhng\pycrypto\
""
"ERROR: broadlink installation error"
Please press any key to continue...
try to install manually pycrypto-2.6.1.win32-py3.4.exe
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Python Plugin: Broadlink RM2 V3

Post by Phantom »

zak45 wrote:@Phantom
See the wiki: linux specific....
maybe something like that :
sudo cp -r /usr/local/lib/python3.4/dist-packages/broadlink /usr/lib/python3.4/
need to be adapted at you environnement, of course.
Hey, i did that step also but then for 3.5, just in case i just did that again but i still get the same message.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest