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 - try

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

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

2008-06-24 Thread Mike Driscoll
Kevin, Also check the permissions on the problem users registry. I would expect that to cause a different error, but it might be worth checking. Most users are local admins. And it's just been happening for the last couple of weeks, so it's likely what Roger said: a corrupt registry entry.

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

2008-06-23 Thread Tim Golden
Mike Driscoll wrote: Tim, Mike 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 that, didn't you?) I knew you'd

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') @-salu

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

2008-06-23 Thread Mike Driscoll
Roger Upole wrote: 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 this: import win32serviceutil serviceState = win32ser

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

2008-06-23 Thread Mike Driscoll
Tim, Mike 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 that, didn't you?) I knew you'd have some idea...you a

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 o

[python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Roger Upole
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 this: import win32serviceutil serviceState = win32serviceutil.QueryServic

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

2008-06-23 Thread Mike Driscoll
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 this: import win32serviceutil serviceState = win32serviceutil.QueryServiceStatus('VNC Server'

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

2008-06-23 Thread Tim Golden
Mike 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 that, didn't you?) Example you can modify: http://tgolden.sc.s

[python-win32] Querying the VNC Service fails sometimes

2008-06-23 Thread Mike Driscoll
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 this: import win32serviceutil serviceState = win32serviceutil.QueryServiceStatus('VNC Server')[1] This works in 9