PySerial could not open port COM4: [Error 5] Access is denied - please help
Grant Edwards
invalid at invalid.invalid
Wed Jun 27 17:18:09 EDT 2012
On 2012-06-27, Adam <adam at no_thanks.com> wrote:
> The Python script needed a call to ser.close() before ser.open() in
> order to work.
IOW, the port opened OK, but when you tried to open it a second time
without closing it first, _that's_ when the .open() call failed.
That's a restriction built in to Win32. You can't open a serial port
that's already open. [Linux doesn't have that restriction.]
Why do you need to open it a second time?
--
Grant Edwards grant.b.edwards Yow! Send your questions to
at ``ASK ZIPPY'', Box 40474,
gmail.com San Francisco, CA 94140,
USA
More information about the Python-list
mailing list