Arksine / katapult

Configurable bootloader for Klipper
GNU General Public License v3.0
390 stars 67 forks source link

Unable to open serial port: [Errno 11] #89

Closed TItan371 closed 9 months ago

TItan371 commented 9 months ago

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