From first.oxe at gmail.com Fri Oct 1 08:51:01 2021 From: first.oxe at gmail.com (=?UTF-8?B?0JLQu9Cw0LTQuNC80LjRgCDQotGD0LzQsNC90L7Qsg==?=) Date: Fri, 1 Oct 2021 15:51:01 +0300 Subject: [python-win32] pywin32 (pythoncom) get ITAddressDeviceSpecificEvent param in TAPI Message-ID: Hi I am trying to write event monitoring for TAPI but I get errors when trying to work with ITAddressDeviceSpecificEvent and ITCallInfoChangeEvent methods here is a sample code tapi = win32com.client.Dispatch (cls) tapi.Initialize () events = TapiEvents (tapi) tapi.EventFilter = 0x3FFFFFF class TapiEvents (win32com.client.getevents (cls)): def OnEvent (self, ev1, ev2): try: ev3 = win32com.client.Dispatch (ev2) get_name = str (type (ev3)). split (".") [str (type (ev3)). count (".")]. split ("'") [0] if get_name == "ITAddressDeviceSpecificEvent": print (dir (ev3)) ['Address',' CLSID ',' Call ',' _ApplyTypes_ ',' __class__ ',' __delattr__ ',' __dict__ ',' __dir__ ',' __doc__ ',' __eq__ ',' __ format__ ',' __ge__ ',' __getattr__ ',' __getattribute__ ',' __gt__ ',' __hash__ ',' __init__ ',' __init_subclass__ ',' __iter__ ',' __le__ ',' __lt__ ',' __module__ ',' __ne__ ',' __new__ ',' __reduce__ ',' __reduce_ex__ ',' __repr__ ',' __setattr__ ',' __s izeof__ ',' __str__ ',' __subclasshook__ ',' __weakref__ ',' _get_good_object_ ',' _get_good_single_object_ ',' _oleobj_ ',' _p rop_map_get_ ',' _prop_map_put_ ',' coclass_clsid ',' lParam1 ',' lParam2 ',' lParam3 '] If I try to get ev3.Address or ev3.Call then I get errors pywintypes.com_error: (-2147352573, 'Member not found.', None, None) and pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, - 2147221497), None) -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.l.lewis at rbccm.com Wed Oct 6 09:07:20 2021 From: michael.l.lewis at rbccm.com (Lewis, Michael L) Date: Wed, 6 Oct 2021 13:07:20 +0000 Subject: [python-win32] help needed, missing pythoncomload[37].dll ? Message-ID: <0053776fdffc464b8bb25e90dc518845@SXLOE205.fg.rbc.com> Hi, Working on an internal system that we?re trying to update (sadly we were still on Python 2.7 ? ? One think I noticed is amongst the scripts we have is a dependency on: pythoncomloader27.dll (which appears at least to have been part of pywin32_system32 This is referenced in some registry files, e.g. [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{80e81c1f-9b39-4a49-9c16-65e7404b809c2}\InprocServer32] @="pythoncomloader27.dll" ? presumably I need to update this too?. "ThreadingModel"="both" However when I install the win32 package for Python 3.7; this file seems missing (I just see the pythoncom & wintypes dlls) any idea on how I can find/build this? (I?m assuming it?s still needed for the com stuff). Regards, Mike ________________________________________________________________ This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential. Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately and delete the original message without copying, using, or telling anyone about its contents. This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message. This message does not create or change any contract. Royal Bank of Canada and its subsidiaries accept no responsibility for damage caused by any viruses contained in this email or its attachments. Emails may be monitored. RBC Capital Markets is a business name used by branches and subsidiaries of Royal Bank of Canada, including Royal Bank of Canada, London branch and RBC Europe Limited. In accordance with English law requirements, details regarding RBC Europe Limited and Royal Bank of Canada, London Branch are set out below: RBC EUROPE LIMITED Registered in England and Wales 995939 Registered Address: 100 Bishopsgate, London, EC2N 4AA. Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. ROYAL BANK OF CANADA, LONDON BRANCH Incorporated in Canada in 1869 with Limited Liability. Registered in England and Wales BR000548 Registered Address: 1 Place Ville Marie, Montreal, Quebec, Canada. Branch location: 100 Bishopsgate, London, EC2N 4AA. Authorised and regulated by the Office of the Superintendent of Financial Institutions of Canada. Authorised by the Prudential Regulation Authority. Subject to regulation by the Financial Conduct Authority and limited regulation by the Prudential Regulation Authority. Details of our regulation by the Prudential Regulation Authority are available from us on request. Please see link for RBCCM disclosures. https://www.rbccm.com/rbccm/policies-disclaimers.page -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhammond at skippinet.com.au Wed Oct 6 22:14:56 2021 From: mhammond at skippinet.com.au (Mark Hammond) Date: Thu, 7 Oct 2021 13:14:56 +1100 Subject: [python-win32] help needed, missing pythoncomload[37].dll ? In-Reply-To: <0053776fdffc464b8bb25e90dc518845@SXLOE205.fg.rbc.com> References: <0053776fdffc464b8bb25e90dc518845@SXLOE205.fg.rbc.com> Message-ID: On 7/10/2021 12:07 am, Lewis, Michael L wrote: > Hi, > > Working on an internal system that we?re trying to update (sadly we were > still on Python 2.7 ?? > > One think I noticed is amongst the scripts we have is a dependency on: > > pythoncomloader27.dll (which appears at least to have been part of > pywin32_system32 > > This is referenced in some registry files, e.g. > > [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{80e81c1f-9b39-4a49-9c16-65e7404b809c2}\InprocServer32] > > @="pythoncomloader27.dll"? ? presumably I need to update this too?. > > "ThreadingModel"="both" > > However when I install the win32 package for Python 3.7; this file seems > missing (I just see the pythoncom & wintypes dlls) > > any idea on how I can find/build this? (I?m assuming it?s still needed > for the com stuff). It was only needed with earlier MSVC versions, so isn't necessary for 3.x. You can use pythoncom37.dll in its place. Cheers, Mark From michael.l.lewis at rbccm.com Thu Oct 7 04:17:25 2021 From: michael.l.lewis at rbccm.com (Lewis, Michael L) Date: Thu, 7 Oct 2021 08:17:25 +0000 Subject: [python-win32] help needed, missing pythoncomload[37].dll ? In-Reply-To: References: <0053776fdffc464b8bb25e90dc518845@SXLOE205.fg.rbc.com> Message-ID: Hi, Thanks for the information, that helps a lot. All the best, Mike Lewis -----Original Message----- From: Mark Hammond Sent: Thursday, October 7, 2021 3:15 AM To: Lewis, Michael L ; python-win32 at python.org Subject: Re: [python-win32] help needed, missing pythoncomload[37].dll ? [External] On 7/10/2021 12:07 am, Lewis, Michael L wrote: > Hi, > > Working on an internal system that we?re trying to update (sadly we > were still on Python 2.7 ?? > > One think I noticed is amongst the scripts we have is a dependency on: > > pythoncomloader27.dll (which appears at least to have been part of > pywin32_system32 > > This is referenced in some registry files, e.g. > > [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{80e81c1f-9b39-4a49-9c16-65e7404b > 809c2}\InprocServer32] > > @="pythoncomloader27.dll"? ? presumably I need to update this too?. > > "ThreadingModel"="both" > > However when I install the win32 package for Python 3.7; this file > seems missing (I just see the pythoncom & wintypes dlls) > > any idea on how I can find/build this? (I?m assuming it?s still needed > for the com stuff). It was only needed with earlier MSVC versions, so isn't necessary for 3.x. You can use pythoncom37.dll in its place. Cheers, Mark ________________________________________________________________ This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential. Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately and delete the original message without copying, using, or telling anyone about its contents. This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message. This message does not create or change any contract. Royal Bank of Canada and its subsidiaries accept no responsibility for damage caused by any viruses contained in this email or its attachments. Emails may be monitored. RBC Capital Markets is a business name used by branches and subsidiaries of Royal Bank of Canada, including Royal Bank of Canada, London branch and RBC Europe Limited. In accordance with English law requirements, details regarding RBC Europe Limited and Royal Bank of Canada, London Branch are set out below: RBC EUROPE LIMITED Registered in England and Wales 995939 Registered Address: 100 Bishopsgate, London, EC2N 4AA. Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. ROYAL BANK OF CANADA, LONDON BRANCH Incorporated in Canada in 1869 with Limited Liability. Registered in England and Wales BR000548 Registered Address: 1 Place Ville Marie, Montreal, Quebec, Canada. Branch location: 100 Bishopsgate, London, EC2N 4AA. Authorised and regulated by the Office of the Superintendent of Financial Institutions of Canada. Authorised by the Prudential Regulation Authority. Subject to regulation by the Financial Conduct Authority and limited regulation by the Prudential Regulation Authority. Details of our regulation by the Prudential Regulation Authority are available from us on request. Please see link for RBCCM disclosures. https://www.rbccm.com/rbccm/policies-disclaimers.page From mhammond at skippinet.com.au Sun Oct 10 20:24:24 2021 From: mhammond at skippinet.com.au (Mark Hammond) Date: Mon, 11 Oct 2021 11:24:24 +1100 Subject: [python-win32] [ANN] pywin32 build 302 released Message-ID: <9fe4fb09-18b3-2c13-140a-24190ab89115@skippinet.com.au> Hi all, I'm happy to announce the release of pywin32 build 302. There are a relatively small number of visible changes in this release, although there are quite a few changes underneath the covers (eg, the entire repository has been formatted with `black`, so files with a mix of tabs and spaces is finally a thing of the past), most should be invisible. Most notably, Python 3.10 is supported. Thanks heaps to @kxrob for helping with the heavy-lifting there. Downloads are available at: https://github.com/mhammond/pywin32/releases/tag/b302 and via pypi. For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32 at python.org). If you want to report a bug, please do so at https://github.com/mhammond/pywin32/issues As always, thanks to everyone who contributed to this release, both in terms of code and reporting bugs - there were a number of new contributors which is great to see, Cheers, Mark. Changes: Since build 301: ---------------- * Fixed support for unicode as a `win32crypt.CREDENTIAL_ATTRIBUTE.Value` * Support for Python 10, dropped support for Python 3.5 (3.5 security support ended 13 Sep 2020) * Merged win2kras into win32ras. In the unlikely case that anyone is still using win2kras, there is a win2kras.py that imports all of win32ras. If you import win2kras and it fails with 'you must import win32ras first', then it means an old win2kras.pyd exists, which you should remove. * github branch 'master' was renamed to 'main'.