Have been using the AppDaemon in hassio (add-on v 1.2, AppDaemon v3.x, Hassio v 72.1) with success for a number of months, and after a reset I am getting errors loading PyMySQL. Appears to be while compiling a cryptography dependency. Note that I also load SQLAlchemy, and it appears to load fine during startup of the add-on.
Any suggestions?
…
reading manifest file ‘src/cryptography.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘docs/_build’
warning: no previously-included files matching ‘*’ found under directory ‘vectors’
writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’
running build_ext
generating cffi module ‘build/temp.linux-armv7l-3.6/_padding.c’
creating build/temp.linux-armv7l-3.6
generating cffi module ‘build/temp.linux-armv7l-3.6/_constant_time.c’
generating cffi module ‘build/temp.linux-armv7l-3.6/_openssl.c’
building ‘_openssl’ extension
creating build/temp.linux-armv7l-3.6/build
creating build/temp.linux-armv7l-3.6/build/temp.linux-armv7l-3.6
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.6m -c build/temp.linux-armv7l-3.6/_openssl.c -o build/temp.linux-armv7l-3.6/build/temp.linux-armv7l-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion
unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1
----------------------------------------
Command “/usr/bin/python3.6 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-9sja1403/cryptography/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-m8142xpc-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-9sja1403/cryptography/
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
FATAL: Failed installing package PyMySQL
[cont-init.d] 81-python-packages.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 50-compiled-symlink.sh: executing…
[cont-finish.d] 50-compiled-symlink.sh: exited 0.
[cont-finish.d] 99-message.sh: executing…
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.