Hi, I get problems, like ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28β not found
Any ide someone, tryed to find any git with the newer version without any luck?
I followed the instructions on the OP and ended up with this situation:
pi@hassbian:~ $ sudo systemctl stop [email protected]
pi@hassbian:~ $ sudo -u homeassistant -H -s
homeassistant@hassbian:/home/pi $ source /srv/homeassistant/bin/activate
bash: /srv/homeassistant/bin/activate: No such file or directory
homeassistant@hassbian:/home/pi $ pip3 install --upgrade homeassistant
Collecting homeassistant
Cache entry deserialization failed, entry ignored
homeassistant@hassbian:/home/pi $ source /srv/homeassistant/bin/activate
bash: /srv/homeassistant/bin/activate: No such file or directory
Downloading https://files.pythonhosted.org/packages/dc/73/85be07463f1e00048697413f6093ef2d1aad038cbd3a7563395eba95f8ca/homeassistant-0.102.3-py3-none-any.whl (5.8MB)
100% |ββββββββββββββββββββββββββββββββ| 5.8MB 27kB/s
Collecting bcrypt==3.1.7 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz (42kB)
100% |ββββββββββββββββββββββββββββββββ| 51kB 1.0MB/s
Collecting python-slugify==4.0.0 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-4.0.0-py2.py3-none-any.whl
Collecting async-timeout==3.0.1 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting cryptography==2.8 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB)
100% |ββββββββββββββββββββββββββββββββ| 512kB 263kB/s
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Collecting pip>=8.0.3 (from homeassistant)
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
100% |ββββββββββββββββββββββββββββββββ| 1.4MB 101kB/s
Collecting pytz>=2019.03 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
100% |ββββββββββββββββββββββββββββββββ| 512kB 281kB/s
Collecting requests==2.22.0 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
100% |ββββββββββββββββββββββββββββββββ| 61kB 1.0MB/s
Collecting pyyaml==5.1.2 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB)
100% |ββββββββββββββββββββββββββββββββ| 266kB 547kB/s
Collecting astral==1.10.1 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/ff/5d/261f49822b7f77c265197d46cdbaaaaf06f458734e9ac55a140dd75bdf29/astral-1.10.1-py2.py3-none-any.whl
Collecting certifi>=2019.9.11 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
100% |ββββββββββββββββββββββββββββββββ| 163kB 685kB/s
Collecting jinja2>=2.10.3 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1ccee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whl (125kB)
100% |ββββββββββββββββββββββββββββββββ| 133kB 14kB/s
Collecting voluptuous-serialize==2.3.0 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.3.0-py3-none-any.whl
Collecting aiohttp==3.6.1 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/10/28/ab9decdf95f0b2babe509f264ca531fd6c910615e0b4be5f240dba500832/aiohttp-3.6.1.tar.gz (1.1MB)
100% |ββββββββββββββββββββββββββββββββ| 1.1MB 119kB/s
Collecting ruamel.yaml==0.15.100 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/9a/ee/55cd64bbff971c181e2d9e1c13aba9a27fd4cd2bee545dbe90c44427c757/ruamel.yaml-0.15.100.tar.gz (318kB)
100% |ββββββββββββββββββββββββββββββββ| 327kB 400kB/s
Collecting voluptuous==0.11.7 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://www.piwheels.org/simple/voluptuous/voluptuous-0.11.7-py3-none-any.whl
Collecting PyJWT==1.7.1 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Collecting attrs==19.3.0 (from homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting contextvars==2.4; python_version < "3.7" (from homeassistant)
Downloading https://www.piwheels.org/simple/contextvars/contextvars-2.4-py3-none-any.whl
Collecting importlib-metadata==0.23 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/f6/d2/40b3fa882147719744e6aa50ac39cf7a22a913cbcba86a0371176c425a3b/importlib_metadata-0.23-py2.py3-none-any.whl
Collecting cffi>=1.1 (from bcrypt==3.1.7->homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz (460kB)
100% |ββββββββββββββββββββββββββββββββ| 460kB 293kB/s
Collecting six>=1.4.1 (from bcrypt==3.1.7->homeassistant)
Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Collecting text-unidecode>=1.3 (from python-slugify==4.0.0->homeassistant)
Downloading https://files.pythonhosted.org/packages/a6/a5/c0b6468d3824fe3fde30dbb5e1f687b291608f9473681bbf7dabbf5a87d7/text_unidecode-1.3-py2.py3-none-any.whl (78kB)
100% |ββββββββββββββββββββββββββββββββ| 81kB 1.0MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests==2.22.0->homeassistant)
Downloading https://files.pythonhosted.org/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl (125kB)
100% |ββββββββββββββββββββββββββββββββ| 133kB 874kB/s
Collecting idna<2.9,>=2.5 (from requests==2.22.0->homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
100% |ββββββββββββββββββββββββββββββββ| 61kB 1.0MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.22.0->homeassistant)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |ββββββββββββββββββββββββββββββββ| 143kB 839kB/s
Collecting MarkupSafe>=0.23 (from jinja2>=2.10.3->homeassistant)
Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting multidict<5.0,>=4.5 (from aiohttp==3.6.1->homeassistant)
Downloading https://files.pythonhosted.org/packages/8a/74/61547af55c077b8d2e3648c2af74c08fa1e382665b290468db7ba54db2ea/multidict-4.6.1.tar.gz (115kB)
100% |ββββββββββββββββββββββββββββββββ| 122kB 925kB/s
Collecting yarl<2.0,>=1.0 (from aiohttp==3.6.1->homeassistant)
Downloading https://files.pythonhosted.org/packages/d6/67/6e2507586eb1cfa6d55540845b0cd05b4b77c414f6bca8b00b45483b976e/yarl-1.4.2.tar.gz (163kB)
100% |ββββββββββββββββββββββββββββββββ| 163kB 686kB/s
Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp==3.6.1->homeassistant)
Downloading https://www.piwheels.org/simple/idna-ssl/idna_ssl-1.1.0-py3-none-any.whl
Collecting typing_extensions>=3.6.5; python_version < "3.7" (from aiohttp==3.6.1->homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/03/92/705fe8aca27678e01bbdd7738173b8e7df0088a2202c80352f664630d638/typing_extensions-3.7.4.1-py3-none-any.whl
Collecting immutables>=0.9 (from contextvars==2.4; python_version < "3.7"->homeassistant)
Downloading https://files.pythonhosted.org/packages/39/34/d5f6797f9b835d755d047d7a592a0f2f0044f82b5c9a184a5fbe7488808f/immutables-0.11.tar.gz
Collecting zipp>=0.5 (from importlib-metadata==0.23->homeassistant)
Downloading https://files.pythonhosted.org/packages/74/3d/1ee25a26411ba0401b43c6376d2316a71addcc72ef8690b101b4ea56d76a/zipp-0.6.0-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.1->bcrypt==3.1.7->homeassistant)
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl (111kB)
100% |ββββββββββββββββββββββββββββββββ| 112kB 269kB/s
Collecting more-itertools (from zipp>=0.5->importlib-metadata==0.23->homeassistant)
Downloading https://files.pythonhosted.org/packages/68/03/0604cec1ea13c9f063dd50f900d1a36160334dd3cfb01fd0e638f61b46ba/more_itertools-8.0.2-py3-none-any.whl (40kB)
100% |ββββββββββββββββββββββββββββββββ| 40kB 946kB/s
Installing collected packages: pycparser, cffi, six, bcrypt, text-unidecode, python-slugify, async-timeout, cryptography, pip, pytz, urllib3, idna, certifi, chardet, requests, pyyaml, astral, MarkupSafe, jinja2, voluptuous, voluptuous-serialize, attrs, multidict, yarl, idna-ssl, typing-extensions, aiohttp, ruamel.yaml, PyJWT, immutables, contextvars, more-itertools, zipp, importlib-metadata, homeassistant
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/local/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/local/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/local/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/local/lib/python3.6/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/usr/local/lib/python3.6/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/local/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/pycparser'
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
bash: /srv/homeassistant/bin/activate: No such file or directory
Either the wrong path or something is seriously wrong with your venv.
For future reference, if a command fails thereβs no point carrying on with the others. Each subsequent command tends to rely on the previous one being successful.
I have a script saved for updating HomeAssistant, I KNOW that the procedure is what I posted:
sudo systemctl stop [email protected]
sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
Something about this update messed up Homeassistant. Is there anything I can do to fix this?
NVM it looks like I missed the last commands, testing now if this fixes it.
6 months later. This saved me from a complex upgrade. This solution worked well to setup an alternative Python environment under Stretch and to sort out issues, like changes to connecting to MariaDB.
Since there are SSL issues with at least version 0.95.0, I had to upgrade to Buster if I wanted to go any versions further.
After an easy upgrade of Buster, I just swapped to the new Python environment in the service and all good!
Thanks, thanks, thanks, again!
Thanks again for this!
Glad it helped.