Broadlink RM2 Plugin won't install copy plugin error

Python and python framework

Moderator: leecollings

Post Reply
NibblyPig
Posts: 13
Joined: Monday 03 August 2015 12:29
Target OS: Windows
Domoticz version:
Contact:

Broadlink RM2 Plugin won't install copy plugin error

Post by NibblyPig »

I run the setup.exe and I get this:
"Broadlink RM2 python plugin install for Win"
" this need to be run with admin right "
" if pycrypto or pycryptodome are installed you need to remove them "
" this installation file is only for new install "
""
""
"Search python version"
Python 3.5.4
" main module used by the plugin"
"Python version : " 35
Requirement already satisfied: pyaes in c:\users\simon\appdata\local\programs\python\python35-32\lib\site-packages
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Processing c:\users\simon\appdata\local\temp\ixp000.tmp\python-broadlink-0.8\python-broadlink-0.8
Requirement already satisfied (use --upgrade to upgrade): broadlink==0.8 from file:///C:/Users/Simon/AppData/Local/Temp/IXP000.TMP/python-broadlink-0.8/python-broadlink-0.8 in c:\users\simon\appdata\local\programs\python\python35-32\lib\site-packages
Requirement already satisfied: pyaes==1.6.0 in c:\users\simon\appdata\local\programs\python\python35-32\lib\site-packages (from broadlink==0.8)
Requirement already satisfied: PyCRC in c:\users\simon\appdata\local\programs\python\python35-32\lib\site-packages (from broadlink==0.8)
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
File not found - plugin.py
0 File(s) copied
""
"ERROR: copy plugin error"
Press any key to continue . . .
Running it as administrator. I tried extracting the setup files via the command line and examining the script, I can't understand why it says 0 files copied as if I run the xcopy command by copying + pasting it into the CMD window then it runs.

I tried running all the xcopy commands manually (which worked) but the plugin didn't appear in domoticz - I am wondering if something else in the setup.exe needs to be ran and is waiting for a success exit code from the script which it won't get.

Any advice on getting this to work?

EDit: I've done some more investigation and I can see the problem, in the script it changes the folder with this line:
cd python-broadlink-0.8\python-broadlink-0.8
So as you can imagine when it comes to copy the files in the root it fails. I can't see how anyone could have got this to work...

I fixed it by doing the following:

- Use 7zip to open the Setup.exe
- Extract file SetupBroadlink.cmd to a folder such as c:\setupfiles
- Edit the cmd, find the line "if errorlevel 1 goto errorbroadlink" and on the next two lines, add cd.. twice so it looks like this:

if errorlevel 1 goto errorbroadlink
cd ..
cd ..
goto domoticz

- Open the command prompt (as admin) and go to your setup files
- type setup.exe /T:c:\setupfiles
- When prompted to overwrite the SetupBroadlink.cmd file you already put in the setupfiles folder, press no
- Installation should work.
hawhaw
Posts: 1
Joined: Sunday 20 January 2019 22:06
Target OS: Windows
Domoticz version:
Contact:

Re: Broadlink RM2 Plugin won't install copy plugin error

Post by hawhaw »

!!!
Worked for me. !!!
Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest