Hi
I’m trying to create a simple django app that will open a com port and read information, then display it on a webpage.
The problem I’m encountering is this
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port ‘COM4’: PermissionError(13, ‘Access is denied.’, None, 5)
I’m using VScode and if I try running this code in debug mode I see that there is no problem opening the port, however I cannot get it to open when I type in “py manage.py runserver”
I’ve tried it through powershell in administration mode, I’ve tried opening VScode in admin mode and nothing changed
I’m positive the com port isn’t being used by anything else, also since I can run a simple py script to open the port no problem.
Any ideas where to start ?