New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broadlink broken after 0.64.0 #12682
Comments
FYI This is caused by: https://github.com/mjg59/python-broadlink/blob/master/broadlink/__init__.py#L7 |
This looks pretty similar to #2411, if I run the import in a shell I get: >>> from Crypto.Cipher import AES
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/__init__.py", line 3, in <module>
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/_mode_ecb.py", line 29, in <module>
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File "/usr/local/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 32, in <module>
from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string' Doing
Lets me import the broadlink module without error |
Same problem for me.
if i try it with putty i have this answer: -bash: pip3: command not found |
After uninstalling pycrpto and pycryptodome when i execute "pip3 install pycryptodome" i get below error. unable to execute 'gcc': No such file or directory
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pi p-build-k9mr5eah/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file __);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, ' exec'))" install --record /tmp/pip-w13a6v3k-record/install-record.txt --single-v ersion-externally-managed --compile" failed with error code 1 in /tmp/pip-build- k9mr5eah/pycryptodome/ Looks like there is no gcc on hass.io. How do i install gcc on hass.io. I am running hass.io as a docker container on generic ubuntu x86 machine. |
FWIW, the ZHA module has the same issue using the docker build of HASS. I suspect the docker layer that includes the dependancies was not re-run for this release and/or there's an outdated version requirement in the code. |
Same issue with my setup. I guess it will be fixed on the next update if not a workaround will be published. |
Is there a workaround for docker installations? I use |
I am on docker 2 .. think we have to wait for a fix ont his one. 0.64.1 is coming this evening as I understood |
Thanks much, @roblandry! Workaround working for me. |
@roblandry and @balloob ! can you help ..
unable to execute 'gcc': No such file or directory Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pi p-build-k9mr5eah/pycryptodome/setup.py';f=getattr(tokenize, 'open', open)(__file __);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, ' exec'))" install --record /tmp/pip-w13a6v3k-record/install-record.txt --single-v ersion-externally-managed --compile" failed with error code 1 in /tmp/pip-build- k9mr5eah/pycryptodome/ Looks like there is no gcc on hass.io. How do i install gcc on hass.io. I am running hass.io as a docker container on generic ubuntu x86 machine. |
I got it .. Install gcc by following commands apk update after this i was able to reinstall pycryptodome |
still not working for me... still same error and no result with the fix from @roblandry my error: Wed Feb 28 2018 11:46:08 GMT+0100 (CET) Error while setting up platform broadlink **_**EDIT:: WORKING!!! Had to remove the ':' in the mac address !_ |
I know that this is not the best solution, but a downgrade helped me
|
Hello I had the same prob and here is how I fixed it on my Hass.io docker install on Ubuntu 👍
|
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
):0.64.0
Python release (
python3 --version
):3.6
/platform:
Broadlink
Description of problem:
Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce:The text was updated successfully, but these errors were encountered: