I\'m trying to connect to my phone from my Windows 7 PC using PySerial with the following code:
import wmi import serial c = wmi.WMI() modem = c.query(\"SEL
This happened to me too and it was actually due to the serial port being closed when I tried to access it. This is because I was using a 'with' structure which makes sure to close the port afterwards and a bad code refactoring lead to this issue.