-
Notifications
You must be signed in to change notification settings - Fork 4
Troubleshooting
oujesse edited this page Apr 2, 2022
·
5 revisions
On Windows, do not run python programs inside of the Git Bash terminal.
The recommended way to run pygloves is from in the Windows Terminal, which can be downloaded from the Microsoft Store.
Windows only lets one program access the COM ports at a time, make sure you have all over programs that read from serial, especially the Arduino Serial Monitor and Cura closed.
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)
Also check the COM_PORT
variable is set correctly, it should be the same value as what you set inside the Arduino IDE to flash the board or read from it in the serial monitor.
If your program quickly boots up a terminal window but then quickly closes, you may need to install the win32api module for python:
pip install pypiwin32