During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/katapult/scripts/flash_can.py", line 549, in run
serial_dev.open()
File "/home/pi/.local/lib/python3.9/site-packages/serial/serialposix.py", line 332, in open
self._reconfigure_port(force_update=True)
File "/home/pi/.local/lib/python3.9/site-packages/serial/serialposix.py", line 387, in _reconfigure_port
raise SerialException(msg.errno, "Could not exclusively lock port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 11] Could not exclusively lock port /dev/ttyAMA0: [Errno 11] Resource temporarily unavailable
Hi , can you help me to find out whats wrong? i use skr pico and uart
pi@MinionPi:~ $ python3 ~/katapult/scripts/flash_can.py -f ~/klipper/out/klipper.bin -d /dev/ttyAMA0 ERROR:root:Flash Error Traceback (most recent call last): File "/home/pi/.local/lib/python3.9/site-packages/serial/serialposix.py", line 385, in _reconfigure_port fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB) BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/pi/katapult/scripts/flash_can.py", line 549, in run serial_dev.open() File "/home/pi/.local/lib/python3.9/site-packages/serial/serialposix.py", line 332, in open self._reconfigure_port(force_update=True) File "/home/pi/.local/lib/python3.9/site-packages/serial/serialposix.py", line 387, in _reconfigure_port raise SerialException(msg.errno, "Could not exclusively lock port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 11] Could not exclusively lock port /dev/ttyAMA0: [Errno 11] Resource temporarily unavailable