borisov-r/blenderRepRap-addon — Issue #2: USB autoconnect bug found
Author: borisov-r
Created: 2012-03-01 19:07:25+00:00
State: open

Found an erro, when USB plugged and program started before the USB port is initzialized.

# Traceback (most recent call last):
# File "/usr/local/lib/python3.2/dist-packages/serial/serialposix.py", line 275, in open
# self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK)
# OSError: [Errno 16] Device or resource busy: '/dev/ttyACM0'
#
# During handling of the above exception, another exception occurred:
#
# Traceback (most recent call last):
# File "/Text", line 76, in
# File "/Text", line 47, in testport
# File "/usr/local/lib/python3.2/dist-packages/serial/serialutil.py", line 261, in __init__
# self.open()
# File "/usr/local/lib/python3.2/dist-packages/serial/serialposix.py", line 278, in open
# raise SerialException("could not open port %s: %s" % (self._port, msg))
# serial.serialutil.SerialException: could not open port /dev/ttyACM0: [Errno 16] Device or resource busy: '/dev/ttyACM0'