I am trying to interface with a serial WWAN modem (for diagnostics /signal strength measurement purposes). This is via the onboard COM1 (115200-8-n-1) on my desktop, the con
You need to be running python.exe in elevated mode. Right click and click Run as administrator
You don't need to call open. The constructor already does that, and on Windows whoever opens a COM port has exclusive access to it until they close it.
As to the second problem, take a look at How can I fix "[Error 6] The handle is invalid." with PySerial
Here is what I do to eliminate Access Denied Error:
Press Ctrl + Alt + Del
Select pythonw.exe and press End Process
Re-Run your application in IDLE
It should be run without any access denied error.