Re: [python-win32] Problems starting services - any advice?

2007-12-03 Thread Tim Roberts
David London wrote: > The services never interact with the user. > So, it's sounding like I'm just going to have to tell the client that the > services need to run as "local service". > I suspect so. However, I should point out that the articles I got that information from were rather old.

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Tim Roberts
Jeff Peery wrote: > > > > If I have a multithreaded application but use COM objects only within > the secondary thread is pythoncom.CoInitialize() still required? > Every thread that will use COM services has to have run CoInitialize at some point. Pythoncom will automatically do a CoInitalize,

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Jeff Peery
Ok, thanks. If I have a multithreaded application but use COM objects only within the secondary thread is pythoncom.CoInitialize() still required? So if I understand correctly, I could go the route I'm headed, but my code might be simpler and more reliable if I setup an event handler for th

Re: [python-win32] Problems starting services - any advice?

2007-12-03 Thread David London
On Monday 03 December 2007 3:21:06 pm Tim Roberts wrote: > David London wrote: > > Hello all, > > I'm encountering some strangeness when running my python code on a > > windows machine and I was wondering if anyone had any advice, > > > > I have a number of python services (8) that run on a client

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Tim Roberts
Jeff Peery wrote: > > Graham, > > thanks for the beta! I think my main problem is that I don’t really > understand this code; I didn’t write it. Could you recommend a > book/website that describes what these functions like > ‘group.OPCItems.AddItem’ do? For example I don’t really know what a > ‘gro

Re: [python-win32] Problems starting services - any advice?

2007-12-03 Thread Tim Roberts
David London wrote: > Hello all, > I'm encountering some strangeness when running my python code on a windows > machine and I was wondering if anyone had any advice, > > I have a number of python services (8) that run on a client machine, > monitoring various database tables or folders, doing som

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Jeff Peery
thanks for the beta! I think my main problem is that I don't really understand this code; I didn't write it. Could you recommend a book/website that describes what these functions like 'group.OPCItems.AddItem' do? For example, how do I know what a 'group' is or what the addItem() parame

[python-win32] Problems starting services - any advice?

2007-12-03 Thread David London
Hello all, I'm encountering some strangeness when running my python code on a windows machine and I was wondering if anyone had any advice, I have a number of python services (8) that run on a client machine, monitoring various database tables or folders, doing something with the data, then sle

Re: [python-win32] problem accessing OPC clients from thread (Graham Bloice)

2007-12-03 Thread Jeff Peery
Graham, thanks for the beta! I think my main problem is that I don't really understand this code; I didn't write it. Could you recommend a book/website that describes what these functions like 'group.OPCItems.AddItem' do? For example I don't really know what a 'group' is or what the addItem() par

[python-win32] Can Win32 python load Cygwin-compiled DLLs?

2007-12-03 Thread Richard W.M. Jones
I'm trying to seek a definitive answer to the question: Can Win32 python load Cygwin-compiled DLLs? We have a C library (http://libvirt.org/) which has Python bindings. Because the library relies on a lot of POSIX stuff we have only got so far as to compile it under Cygwin. Using the Cygwin v

Re: [python-win32] problem accessing OPC clients from thread

2007-12-03 Thread Graham Bloice
Jeff Peery wrote: > Hello, > I'm getting in a bit over my head here and need some help. I'm running > a simple wxpython application that runs a thread in the background. > The thread is supposed to read and write data to/from an OPC server - > which I use to communicate to a PLC (programmable logic