Hi guys
I have issues with sensor.systemmonitor:
Not initializing sensor.systemmonitor because could not install requirement psutil==5.4.7
14:56 requirements.py (ERROR)
Unable to install package psutil==5.4.7: Failed building wheel for psutil Command “/srv/homeassistant/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-udg72c3u/psutil/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-record-032pqrx_/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/psutil” failed with error code 1 in /tmp/pip-install-udg72c3u/psutil/
14:56 util/package.py (ERROR)
So from my understanding its missing python headers. The problem is how to install it. If I run apt-get install python3-dev I get permission denied. I could ofc run as sudo but that wont help me.
apt-get install python3-dev
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Tried to install psutil==5.4.7 manually with same error msg as in log (ofc).
Tried to install using sudo -E
sudo -E apt-get install python3-dev
[sudo] password for homeassistant:
Reading package lists… Done
Building dependency tree
Reading state information… Done
python3-dev is already the newest version (3.6.5-3ubuntu1).
But same problem in HA log
Any ideas how to help?
Latest Ubuntu release
Install on old laptop using venv
Python 3.5.3