Core: Run version 0.115.1 fails [Solved]

Created on 19 Sep 2020  路  7Comments  路  Source: home-assistant/core

The problem

I updated Home Assistant Core from 0.114.4 to 0.115.2. The update went smoothly but when I run Home Assistant it writes a lot of error about to build some dependencies.

2020-09-19 00:47:40 ERROR (SyncWorker_7) [homeassistant.util.package] Unable to install package pillow==7.2.0: ERROR: Command errored out with exit status 1:
   command: /srv/homeassistant_venv_3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3iv3s9x5/pillow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3iv3s9x5/pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-irhnanv_
       cwd: /tmp/pip-install-3iv3s9x5/pillow/

Next it goes a lot of details of the error. I'm attaching a file
log.txt

Environment

I'm running Home Assistant Core in a python virtual environment 3.8 on Raspberry Pi

cat /etc/issue
Raspbian GNU/Linux 10 \n \l

I had to downgrade to the version 0.114.4

Is it possible to solve this issue ? Please tell me which details are required. Thank you!

All 7 comments

pip3 install -r requirements.txt

and it may require you to install a few dev libs to get pillow package built for your system.

Where do I find the requirements.txt file ?

Where do I find the requirements.txt file ?

It should be in the first folder layer, see https://github.com/home-assistant/core/blob/dev/requirements.txt for reference.

Btw I think you mean version 0.115.1 instead of 0.115.2 since that has not been released yet.

Thanks for your replies anyway. I actually solve the problem. First, I was trying to install pillow but got the same error what Home Assistant says in the log file. Obviously it couldn't build the pillow package because couldn't find dev packages.
Then I installed:

apt install libtiff5-dev
apt install libopenjp2-7-dev

and tried once again and it did work.

(homeassistant_venv_3.8) homeassistant@raspberrypi:/ $ pip3 install pillow
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pillow
  Using cached Pillow-7.2.0.tar.gz (39.1 MB)
Building wheels for collected packages: pillow
  Building wheel for pillow (setup.py) ... done
  Created wheel for pillow: filename=Pillow-7.2.0-cp38-cp38-linux_armv7l.whl size=1165461 sha256=ca19b07dc77aa6fb25a10d3e66165025dc2b61da9e1f6ad633496cef8fdb8761
  Stored in directory: /home/homeassistant/.cache/pip/wheels/65/c3/6f/89c938e0903cda7da5eb03c3ec56811b144b3aed9c4aae509a
Successfully built pillow
Installing collected packages: pillow
Successfully installed pillow-7.2.0

Strange that Home Assistant didn't require the package during installation.
Hope it will help someone who are facing the similar problem.

Closing this issue as it has been solved.

I'm running Home Assistant Core in a python virtual environment 3.8 on Raspberry Pi

cat /etc/issue
Raspbian GNU/Linux 10 \n \l

Some uname -a would be appreciated, because on a normal 32bit Raspberry OS it should simply install the wheel for armv7l and you did not have to install any system dependencies.
Unfortunately piwheels did not decide to build for aarch64, which is why it needs to be built by yourself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

i-am-shodan picture i-am-shodan  路  3Comments

flsabourin picture flsabourin  路  3Comments

neonandu picture neonandu  路  3Comments

kirichkov picture kirichkov  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments