this is the whohle error
orangepi@orangepi5:~$ python3 /home/orangepi/v-link/V-Limk.py Initializing backend... Traceback (most recent call last): File "/hone/orangeps/v-Link/V-Link.py", line 9, in <module> from backend.adc import ADCThread File "/home/orangepi/v-Link/backend/adc.py", line 9, in <module> import board File "/home/orangepi/- Local/Lib/python3.9/site-packages/board.py", Line 144, in <module> from adafruit blinka.board.orangepi.orangepi5 import * File "/home/orangepi/.local/Lib/python3.9/site-packages/adafruit_blinka/board/orangepi/orangepi5.py", line 6, in <module> from adafruit_blinka.microcontroller.rockchip.rk3588 import pin File "home/orangepi/. local/lib/python3.9/site-packages/adafruit_blinka/micrcontroller/rockchip/rk3588/pin.py", line 11, in <module> GPIOO_AO = Pin((0, 0)) File "/home/orangepi/. Local/Lib/python3.9/site-packages/adafruit_blinka/microcontroller/generic_linux/libgpiod/libgpiod_pin_2_x.py", line 34, in _init_ self, chip = gpiod.Chip(chip id) File "/home/orangepi/,local/lib/python3.9/site-packages/gpiod/chip-py". Line 58. in _init_ self._chip = ext.Chip(path) PermissionError: [Errno 13] Permission denied Exception ignored in: <function Pin._del_ at 0x7f88608b80> Traceback (most recent call last): File. "/home/orangepi/.local/Lib/python3.9/site-packages/adafruit_blinka/microcontroller/generic_linux/libgpiod/Libgpiod_pin_2_x.py": line 38, in _del_. if self._line_request: AttributeError: 'Pin' object has no attribute '_line_request'
So when I tried runnning the app as root the app starts and I get “Xlib.error.DisplayConnectionError: Can’t connect to display “:0” : b’No protocol specifiedn’
App starts only when I run it as root and xhost+ whithout xhost it throws xlib error
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.