Lorenzuser / HomeDirect_ws

Ongoing project to assist elderly individuals in finding their rooms. For detailed documentation and explanations, please visit the documentation repository.
2 stars 0 forks source link

rfid_publisher (rfid_subscriber) "permission denied" errors fixen #2

Closed Al3xAda closed 1 year ago

Al3xAda commented 1 year ago

Bekannt ist momentan, dass die executables sich mit dem Zugriff auf /dev/spidev sowie /dev/mem schwertun

Al3xAda commented 1 year ago

Error 1

 File "/usr/local/lib/python3.8/dist-packages/mfrc522/MFRC522.py", line 130, in __init__
    self.spi.open(bus, device)
PermissionError: [Errno 13] Permission denied

Gefixt durch bereistellen von Rechten in .bashrc

  sudo chmod o+rw /dev/spidev* 
  #or
  sudo chmoda a+rw ...

Error 2

 File "/usr/local/lib/python3.8/dist-packages/mfrc522/MFRC522.py", line 151, in __init__
    GPIO.setup(pin_rst, GPIO.OUT)
RuntimeError: No access to /dev/mem.  Try running as root! 

Lösungsversuche

Al3xAda commented 1 year ago

Image