Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24557
| From | "Adam" <adam@no_thanks.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: PySerial could not open port COM4: [Error 5] Access is denied - please help |
| Date | 2012-06-27 15:51 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <jsg2pt$87s$1@dont-email.me> (permalink) |
| References | (9 earlier) <jsftah$bb5$1@reader1.panix.com> <jsfv3v$imr$1@dont-email.me> <jsg05u$mgk$1@reader1.panix.com> <jsg0sj$4t9$1@reader1.panix.com> <ra2nu7h75720i75ijhabg12dngrab756e8@4ax.com> |
"Temia Eszteri" <lamialily@cleverpun.com> wrote in message
news:ra2nu7h75720i75ijhabg12dngrab756e8@4ax.com...
> On Wed, 27 Jun 2012 22:18:59 +0000 (UTC), Grant Edwards
> <invalid@invalid.invalid> wrote:
>
>>> Can you post a small example showing what you're doing?
>>
>>The best way to get help is to write as small a program as possible
>>that demonstrates the problem, and post it. I'll help you get
>>started...
>>
>>Does this program work?
>>
>> import serial
>> ser = serial.Serial("COM4")
>> ser.close()
>>
>>At the moment, I don't have access to a Windows machine, but I think
>>the above should run without any errors. If it works, then you've
>>successfully opened and closed the COM4 port. Start adding
>>"features", in increments as small as possible, until the program
>>fails.
>>
>>Then try to remove stuff that's not needed while still keeping the
>>failure.
>>
>>IOW, try to find the smallest possible program that fails.
>>
>>Usually, in the process of doing that, you'll figure out what you were
>>doing wrong. If not, post the smallest failing program you can come
>>up with, and somebody will be able to help.
>>
>>If you won't show us what you're doing, we can't tell you what you're
>>doing wrong.
>
> Actually, I believe someone in an earlier thread in the newsgroup or
> elsewhere pointed out that serial ports automatically open under
> Windows. I'd have to look it back up when I have the time, which I
> don't have at the moment, unfortunately.
>
> ~Temia
> --
> The amazing programming device: fuelled entirely by coffee, it codes while
> awake and tests while asleep!
Thanks, I think I read that as well but can't recall where.
I am just running Python scripts (downloaded),
which is not opening the serial port more than once (as Grant keeps
assuming).
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-26 21:12 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help John Nagle <nagle@animats.com> - 2012-06-26 22:33 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 02:10 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Paul <nospam@needed.com> - 2012-06-27 08:28 -0400
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 08:26 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Paul <nospam@needed.com> - 2012-06-27 12:04 -0400
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 10:41 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Paul <nospam@needed.com> - 2012-06-27 14:04 -0400
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 13:40 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-27 21:18 +0000
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 14:48 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-27 22:06 +0000
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-27 22:18 +0000
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Temia Eszteri <lamialily@cleverpun.com> - 2012-06-27 15:31 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 15:51 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-27 23:24 +0000
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-27 17:14 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-28 14:15 +0000
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "Adam" <adam@no_thanks.com> - 2012-06-28 13:31 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Roel Schroeven <roel@roelschroeven.net> - 2012-06-28 21:08 +0200
Re: PySerial could not open port COM4: [Error 5] Access is denied- please help "Adam" <adam@no_thanks.com> - 2012-06-28 14:48 -0700
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help "David H. Lipman" <DLipman~nospam~@Verizon.Net> - 2012-06-27 08:28 -0400
Re: PySerial could not open port COM4: [Error 5] Access is denied - please help Grant Edwards <invalid@invalid.invalid> - 2012-06-27 14:53 +0000
csiph-web