inetbox.py
inetbox.py copied to clipboard
Installation failed
Hey guys,
i got a error when installing truma_service (after test it). I get the following error while installation (truma_service --install) running as pi user:
Traceback (most recent call last):
File "/home/pi/.local/bin/truma_service", line 8, in <module>
sys.exit(truma_service.run())
File "/home/pi/.local/lib/python3.9/site-packages/inetbox/truma_service.py", line 142, in run
miqro.run(TrumaService)
File "/home/pi/.local/lib/python3.9/site-packages/miqro/__init__.py", line 606, in run
systemd_path.write_text(systemd_unit_file)
File "/usr/lib/python3.9/pathlib.py", line 1274, in write_text
with self.open(mode='w', encoding=encoding, errors=errors) as f:
File "/usr/lib/python3.9/pathlib.py", line 1241, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/lib/python3.9/pathlib.py", line 1109, in _opener
return self._accessor.open(self, flags, mode)
PermissionError: [Errno 13] Permission denied: '/etc/systemd/system/miqro_truma.service'
Is there a fix for that?
Looks like a file system permission error. Try a clean Pi OS install then run the install again.
davor: sudo chmod 777 /etc/systemd/system ausführen :) falls es nicht zu spät ist ...