Re: [python-win32] Pythoncom PROPVARIANT

2022-04-25 Thread Mark Hammond
On 26/04/2022 5:00 am, Nicholas Pfeiffer wrote: Hi there, Where is the PROPVARIANT class located in the pythoncom library? The docs are not helpful about this: http://timgolden.me.uk/pywin32-docs/PyPROPVARIANT.html I've seen postings

[python-win32] Pythoncom PROPVARIANT

2022-04-25 Thread Nicholas Pfeiffer
Hi there, Where is the PROPVARIANT class located in the pythoncom library? The docs are not helpful about this: http://timgolden.me.uk/pywin32-docs/PyPROPVARIANT.html I've seen postings that use the propsys module but that one no longer contains the PROPVARIANT class unfortunately. I'm

[python-win32] pythoncom

2014-10-20 Thread John Sampson
On 20/10/2014 11:27, Mark Hammond wrote: On 16/10/2014 8:25 pm, John Sampson wrote: at lib\site-packages\win32com\gen_py I see more files in the version causing trouble than in the version that works OK. How would I recognise the generated support you mention? Those files *are* the generated

Re: [python-win32] pythoncom

2014-10-16 Thread Mark Hammond
On 16/10/2014 12:50 AM, John Sampson wrote: The interface has a function which returns a string from an array of strings as it is supposed to in Windows 64-bit, or if called from VBA. In 32-bit Windows Python it returns the number of the item in the array instead. So to be clear - you have a

[python-win32] pythoncom

2014-10-16 Thread John Sampson
On 16/10/2014 07:48, Mark Hammond wrote: On 16/10/2014 12:50 AM, John Sampson wrote: The interface has a function which returns a string from an array of strings as it is supposed to in Windows 64-bit, or if called from VBA. In 32-bit Windows Python it returns the number of the item in the

[python-win32] pythoncom

2014-10-15 Thread John Sampson
On 14/10/2014 18:15, Tim Roberts wrote: John Sampson wrote: I have a proprietary program with a command interface implemented as an ActiveX DLL. Importing win32com.client and pythoncom, I can call functions from Python scripts. Some of these work properly in 32-bit Windows 7, but others only in

[python-win32] pythoncom

2014-10-14 Thread John Sampson
I have a proprietary program with a command interface implemented as an ActiveX DLL. Importing win32com.client and pythoncom, I can call functions from Python scripts. Some of these work properly in 32-bit Windows 7, but others only in 64-bit Windows. Is this because pythoncom is designed to

Re: [python-win32] pythoncom

2014-10-14 Thread Tim Roberts
John Sampson wrote: I have a proprietary program with a command interface implemented as an ActiveX DLL. Importing win32com.client and pythoncom, I can call functions from Python scripts. Some of these work properly in 32-bit Windows 7, but others only in 64-bit Windows. Is this because

[python-win32] Pythoncom IEnum weird behaviour

2014-08-18 Thread Gregory Ewing
I have a COM server implemented in Python. I've created the following object implementing IEnum to automatically wrap the sequence elements in PyIDispatch objects: from win32com.server.util import ListEnumerator class Iterator(ListEnumerator): def Next(self, count):

[python-win32] pythoncom error -2147180508. What is it?

2014-04-01 Thread Joss Gray
I'm using the awesome wmi package in my application which I understand uses pythoncom. I'm using wmi to perform operations like setting the IP of a network adapter, reading various bits of system information. I'm finding that once in a while calls start failing with an error -2147180508 (

Re: [python-win32] pythoncom error -2147180508. What is it?

2014-04-01 Thread Tim Golden
On 01/04/2014 11:52, Joss Gray wrote: I'm using the awesome wmi package in my application which I understand uses pythoncom. I'm using wmi to perform operations like setting the IP of a network adapter, reading various bits of system information. I'm finding that once in a while calls

Re: [python-win32] pythoncom error -2147180508. What is it?

2014-04-01 Thread Rod Person
On 04/01/2014 6:52 AM, Joss Gray wrote: I'm using the awesome wmi package in my application which I understand uses pythoncom. I'm using wmi to perform operations like setting the IP of a network adapter, reading various bits of system information. I'm finding that once in a while calls

Re: [python-win32] pythoncom error -2147180508. What is it?

2014-04-01 Thread Joss Gray
Thanks, for some reason I couldn't find anything with google. Turns out it is a bug with windows, hotfix here http://support.microsoft.com/kb/2530185 Thanks. *Joss Gray* d3 Operator/Technician *d3 Technologies.* T. +44 20 7234 9840 M. +44 7969 542 844 d3technologies.com

[python-win32] pythoncom question

2008-09-04 Thread Ujjaval Suthar
Hi all, I am working on a python application which is a multi-threaded application. I just want to make sure that I am doing the right thing or if not, please let me know. I have a parent thread which initalize the COM object inside a python object. This parent thread instantiates 4 other child

Re: [python-win32] pythoncom warning: PyVARDESC

2008-06-04 Thread Mark Hammond
Tim: It appears we are hitting a VARKIND of VAR_DISPATCH. Does it happen for you on any typelibs I'm likely to have installed? Any idea what in your typelibs could cause this, so I can repro it in the test suite? MAPI.Session definitely does this Sadly I don't have that installed :( I

Re: [python-win32] pythoncom warning: PyVARDESC

2008-06-03 Thread Tim Golden
Mark Hammond wrote: Since release 211, I have dozens dozens messages, like this: pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) -

[python-win32] pythoncom warning: PyVARDESC

2008-06-02 Thread Michel Claveau
Hi! Since release 211, I have dozens dozens messages, like this: pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None

Re: [python-win32] pythoncom warning: PyVARDESC

2008-06-02 Thread Mark Hammond
Since release 211, I have dozens dozens messages, like this: pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None

[python-win32] Pythoncom error with Excel

2006-11-27 Thread Andrea Gavana
Hi all, I have built a script that communicates with Excel and plots some data using win32com. Everything goes fine as long as the data series do not contain many points. If I have more that few points (let's say 50 points to plot), I get this error: (-2147352567, 'Exception occurred.', (0,

[python-win32] pythoncom multithread troubles

2006-11-27 Thread Kostas Eleftheriou
Hi, I have built a python application that uses a COM server from multiple threads, and despite some initial problems, I got it to work. I found out (the hard way) that the COM server would have undefined behaviour if some of its functions were called at the same time form multiple threads (so it

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Thomas Heller
Kostas Eleftheriou schrieb: Hi, I have built a python application that uses a COM server from multiple threads, and despite some initial problems, I got it to work. I found out (the hard way) that the COM server would have undefined behaviour if some of its functions were called at the same

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Kostas Eleftheriou
Hello Thomas, Thanks for your quick reply. I do not marshal anything because I don't need to pass objects between threads, each thread currently only deals with its own objects. I have also tried using a surrogate process to host the dll server (dllhost.exe) through the registry, but although the

Re: [python-win32] pythoncom multithread troubles

2006-11-27 Thread Mark Hammond
What I have tried: - Use DispatchEx instead of Dispatch: this works with other COM servers, like MS Word and Excel, but not with mine. Probalby has to do with the fact that they are local servers, whereas mine is inproc. - CoInitialize, CoInitializeEx with flags: no luck - using

Re: [python-win32] PythonCOM Windows Firewall

2006-05-22 Thread Metz, Bobby W, WWCS
Again, thanks to Roger to the perfect tip. As I feared, non-admins don't get prompted to allow an app that's requesting access or I'm doing something wrong. But, this did lead me to write a couple of quick routines for detecting the FW condition for the users and providing a nice little

Re: [python-win32] PythonCOM Windows Firewall

2006-05-18 Thread Metz, Bobby W, WWCS
Roger, thanks for the code. I'll give it a try. Having read a bunch of the documentation though, I'm concerned it may not work as some of our users won't have admin rights. I was hoping this would provide them the Zone Alarm type prompt so that non-admin could approve the listening app upon

[python-win32] PythonCOM Windows Firewall

2006-05-17 Thread Metz, Bobby W, WWCS
Anyone out there ever attempted to use win32com to register applications with Windows Firewall as allowed applications for incoming TCP/UDP connections? Was going to try my hand at this and wondered, if so, that anyone who had already might share some tips. I'm working this so that a

Re: [python-win32] Pythoncom error

2006-03-16 Thread Emlyn Jones
On 3/15/06, Mark Hammond [EMAIL PROTECTED] wrote: Hello, I'm stress testing an application I have written using the Python Asp bindings, on occasions I get an ASP 0147 error (Internal Server Error), In the IIS logs it manifests itself as a c005 trapable error. That sounds like an

Re: [python-win32] Pythoncom error

2006-03-16 Thread Mark Hammond
Here's the thing; I took your advice and kept an eye out for errors related to the debugger support and fixed them when I found them (often with a just quick try except clause as you suggested, I'll revisit them when I get time), Please do, and feed the changes you made back to me (even if I

[python-win32] Pythoncom error

2006-03-15 Thread Emlyn Jones
Hello, I'm stress testing an application I have written using the Python Asp bindings, on occasions I get an ASP 0147 error (Internal Server Error), In the IIS logs it manifests itself as a c005 trapable error. Having attatched a debugger I noticed this in the resulting logs ..snip.. Wed

Re: [python-win32] Pythoncom error

2006-03-15 Thread Mark Hammond
Hello, I'm stress testing an application I have written using the Python Asp bindings, on occasions I get an ASP 0147 error (Internal Server Error), In the IIS logs it manifests itself as a c005 trapable error. That sounds like an Access Violation is happening - which probably is *not*