Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-25 Thread Mike Driscoll
Mark, fter upgrading to 211, I am getting an import error on my wx module. Are these tied together in some weird way? Not that I can think of, and build 211 didn't add any funky new import tricks or anything. However, build 211 is packing the MFC DLL now, so *that* could be related -

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-24 Thread Mark Hammond
For some reason, after upgrading to 211, I am getting an import error on my wx module. Are these tied together in some weird way? Not that I can think of, and build 211 didn't add any funky new import tricks or anything. However, build 211 is packing the MFC DLL now, so *that* could be

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Kevin Horn
Also check the permissions on the problem users registry. I would expect that to cause a different error, but it might be worth checking. Kevin Horn On Mon, Jun 23, 2008 at 2:25 PM, Roger Upole [EMAIL PROTECTED] wrote: Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Tim, div class=moz-text-flowed style=font-family: -moz-fixedMike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You knew I was going to say

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
Roger Upole wrote: div class=moz-text-flowed style=font-family: -moz-fixed Mike Driscoll wrote: Mike Driscoll wrote: Hi, In one of my login scripts for work, I run a query to see if the VNC service is running using the win32serviceutil module. The code for that I am using looks something like

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Michel Claveau
Hi! Can you try to wrap command-line SC? Example of command-line : sc query winvnc Example of wrap: def clwrap(commande, cdir='.'): import os if cdir!='.':os.chdir(cdir) a = os.popen(commande) return a.read() print clwrap('sc query winsvc')

Re: [python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Tim Golden
Mike Driscoll wrote: Tim, div class=moz-text-flowed style=font-family: -moz-fixedMike Driscoll wrote: [... snip problems checking service status ...] Well I've no idea if this suggestion will actually work round whatever the issue is but... ... you can use WMI to query service info. (You