Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24507

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!216.196.98.142.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Wed, 27 Jun 2012 07:28:53 -0500
From "David H. Lipman" <DLipman~nospam~@Verizon.Net>
Newsgroups comp.lang.python, microsoft.public.windowsxp.general
References <jse17v$d5n$1@dont-email.me> <jse604$1cq$1@dont-email.me> <jseim6$tn7$1@dont-email.me>
In-Reply-To <jseim6$tn7$1@dont-email.me>
Subject Re: PySerial could not open port COM4: [Error 5] Access is denied - please help
Date Wed, 27 Jun 2012 08:28:49 -0400
Organization DHL
MIME-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=response
Content-Transfer-Encoding 7bit
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE Produced By Microsoft MimeOLE V6.0.6002.18463
X-Comment-To Adam
X-Debug On
X-Face #!*YlHW<3BNQH,W(*HlLHp!!3C^o,W53`lH?w!P/BI9U&X#l41]a]{(_lFi9uvKIhejF;N7"3{((o^}#4TsAASuyib+4gO;T`p'iU-gC?0Lj'1MyYrhAWCVxHKD~0Jqt9=du~_{E+uqoYt4O$L?M:a>s4@)NMgJjld$%3QOzA[8
FL-Build Fidolook 2007 (HV) 6.0.6000.97 - 22/5/2009 19:59:07
Message-ID <M6ydnb5ji7wYYXfSnZ2dnUVZ_t-dnZ2d@giganews.com> (permalink)
Lines 47
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-pS0PIhjvjL69ayp20vTTyyWNl/vlP3l1oG97s5+0yL1/H0HXeH1VBEprM6Mt1AtFMNdJnJYuM/LY6EB!ganiA3o1HpVR2IS1bt7i8hAK4NpQUxMAoAxUiYxrXsjYrHssnB/c/nHEDdmGPfFws4AhleaLER5G
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 3277
Xref csiph.com comp.lang.python:24507

Cross-posted to 2 groups.

Show key headers only | View raw


From: "Adam" <adam@no_thanks.com>

>
> "John Nagle" <nagle@animats.com> wrote in message 
> news:jse604$1cq$1@dont-email.me...
>> On 6/26/2012 9:12 PM, Adam wrote:
>>> Host OS:    Ubuntu 10.04 LTS
>>> Guest OS:    Windows XP Pro SP3
>>>
>>> I am able to open port COM4 with Terminal emulator.
>>>
>>> So, what can cause PySerial to generate the following error ...
>>>
>>> C:\Wattcher>python wattcher.py
>>> Traceback (most recent call last):
>>>    File "wattcher.py", line 56, in <module>
>>>      ser.open()
>>>    File "C:\Python25\Lib\site-packages\serial\serialwin32.py", line 56, 
>>> in
>>> open
>>>      raise SerialException("could not open port %s: %s" % (self.portstr,
>>> ctypes.WinError()))
>>> serial.serialutil.SerialException: could not open port COM4: [Error 5]
>>> Access is denied.
>>
>>     Are you trying to access serial ports from a virtual machine?
>> Which virtual machine environment?  Xen?  VMware? QEmu?  VirtualBox?
>> I wouldn't expect that to work in most of those.
>>
>>     What is "COM4", anyway?   Few machines today actually have four
>> serial ports.  Is some device emulating a serial port?
>>
>> John Nagle
>>
> Thanks, and yes, I am using VirtualBox.  My laptop does not have a serial 
> port so
> I use a USB-to-serial converter, which is assigned COM4.
>

Then it is a Virtual COM port.  Often software will want to communicate 
directly to the COM4 port which is usually at: IRQ3 and I/O 2E8h.

-- 
Dave
Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk
http://www.pctipp.ch/downloads/dl/35905.asp 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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