-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerialException: [Errno 16] could not open port /dev/ttyACM0: [Errno 16] Device or resource busy: '/dev/ttyACM0' #45
Comments
This typically results in Errno 13 (lack of permission) rather than this device or resource busy one |
I also experience this issue when uploading on ubuntu. The workaround I've found is to run I'm guessing there's got to be some sort of option to set these read/write permissions automatically upon plugin, but I haven't explored that option yet. |
Yes, add yourself to the dialout group |
|
Strictly speaking, that's technically a separate thing.
This can be done with |
#### Summary: Detect Linux conditions for ConnectionRefusedException when trying to open the serial port #### Motivation: Better error messages that won't get sent to us in Sentry ##### References (optional): Closes #45 #### Test Plan: - [x] Still works for Windows when Firmware Utility is open - [x] See better error message when you're not part of dialout group - [x] See better error message when you already have the port open
Sentry Issue: PROS-CLI-3-30
This should be just catching the exception properly and suppressing it. We should add some hints to why we can't open the port:
The text was updated successfully, but these errors were encountered: