inetbox.py icon indicating copy to clipboard operation
inetbox.py copied to clipboard

Installation failed

Open DenioD opened this issue 2 years ago • 2 comments

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?

DenioD avatar Dec 23 '22 08:12 DenioD

Looks like a file system permission error. Try a clean Pi OS install then run the install again.

dougle03 avatar Jan 03 '23 09:01 dougle03

davor: sudo chmod 777 /etc/systemd/system ausführen :) falls es nicht zu spät ist ...

ak68-hub avatar Oct 22 '23 16:10 ak68-hub