Broadlink component not loaded

Hi,
I have problem with Broadlink component.
Broad link Mini
Unable to install package broadlink
Any ideas, where is the problem?
Robert

Log info:

017-05-28 15:14:32 ERROR (<concurrent.futures.thread.ThreadPoolExecutor object at 0x103ff1be0>_6) [homeassistant.util.package] Unable to install package broadlink==0.3: Command “/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c “import setuptools, tokenize;file=’/private/var/folders/t9/86z_j25525q88ynd389cxpkh0000gn/T/pip-build-eoyycm24/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 /var/folders/t9/86z_j25525q88ynd389cxpkh0000gn/T/pip-_sd6b9ju-record/install-record.txt --single-version-externally-managed --compile --home=/var/folders/t9/86z_j25525q88ynd389cxpkh0000gn/T/tmpkent_r22” failed with error code 1 in /private/var/folders/t9/86z_j25525q88ynd389cxpkh0000gn/T/pip-build-eoyycm24/pycrypto/
2017-05-28 15:14:32 ERROR (MainThread) [homeassistant.setup] Not initializing switch.broadlink because could not install dependency broadlink==0.3
2017-05-28 15:14:32 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.broadlink: Could not install all requirements.

1 Like

I’m also getting this error when trying to setup the broadlink component. I think the main issue is the component doesnt want to install:

[homeassistant.util.package] Unable to install package broadlink==0.3

Full log portion is:

2017-05-31 10:56:57 ERROR (<concurrent.futures.thread.ThreadPoolExecutor object at 0x000000C22E05FAC8>_2) [homeassistant.util.package] Unable to install package broadlink==0.3: Command "c:\users\dock\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\dock\\AppData\\Local\\Temp\\pip-build-5ngrwtf3\\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\dock\AppData\Local\Temp\pip-5j5gj0po-record\install-record.txt --single-version-externally-managed --compile --home=C:\Users\dock\AppData\Local\Temp\tmpd96pgapu" failed with error code 1 in C:\Users\dock\AppData\Local\Temp\pip-build-5ngrwtf3\pycrypto\
2017-05-31 10:56:57 ERROR (MainThread) [homeassistant.setup] Not initializing switch.broadlink because could not install dependency broadlink==0.3
2017-05-31 10:56:57 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.broadlink: Could not install all requirements.

perhaps the dependency is broken?

1 Like

I ran:

pip install broadlink==0.3

and the dependency seemed to install:

Collecting broadlink==0.3
  Using cached broadlink-0.3.tar.gz
Requirement already satisfied: pycrypto==2.6.1 in c:\users\dock\appdata\local\pr
ograms\python\python36\lib\site-packages\pycrypto-2.6.1-py3.6-win-amd64.egg (fro
m broadlink==0.3)
Installing collected packages: broadlink
  Running setup.py install for broadlink ... done
Successfully installed broadlink-0.3

However I now get:

2017-05-31 11:48:58 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
  File "c:\users\dock\appdata\local\programs\python\python36\lib\site-packages\homeassistant\helpers\entity_component.py", line 155, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "c:\users\dock\appdata\local\programs\python\python36\lib\concurrent\futures\thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\dock\appdata\local\programs\python\python36\lib\site-packages\homeassistant\components\switch\broadlink.py", line 62, in setup_platform
    import broadlink
  File "c:\users\dock\appdata\local\programs\python\python36\lib\site-packages\broadlink\__init__.py", line 4, in <module>
    from Crypto.Cipher import AES
  File "c:\users\dock\appdata\local\programs\python\python36\lib\site-packages\pycrypto-2.6.1-py3.6-win-amd64.egg\Crypto\Cipher\AES.py", line 50, in <module>
    from Crypto.Cipher import _AES
ImportError: DLL load failed: The specified module could not be found.

I’ve hit a brick wall in my very limited knowledge here :S

Read the docs:

Thanks for this, I had already run the command to install pycrypto but tried again:

pip install --use-wheel --no-index --find-links=https://git
ub.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl
pycrypto
Requirement already satisfied: pycrypto in c:\users\dock\appdata\local\programs
python\python36\lib\site-packages\pycrypto-2.6.1-py3.6-win-amd64.egg

I gave up trying to get it to work on the windows machine and transferred to a Linux server instead and everything works straight out of the box!

Having the same issue on Windows server even though every components have been installed as required.

i got the same issue on docker of synology ,homeassistant of ubnunt…