Re: [python-win32] Python Active Scripting Debug

2025-03-03 Thread Wuping Xin via python-win32
Thank you Mark for the response. Appreciate your input. Best Wuping -- Original Message -- From "Mark Hammond" To "Wuping Xin" ; "python-win32@python.org" Date 3/3/2025 10:24:18 AM Subject Re: [python-win32] Python Active Scripting Debug It ha

Re: [python-win32] python-win32 Digest, Vol 258, Issue 1

2025-03-01 Thread Wuping Xin via python-win32
;AXDebug no longer builds on 3.11 and up" include_dirs = self.compiler.include_dirs + os.environ.get("INCLUDE", "").split( os.pathsep ) -- Original Message -- From "Wuping Xin" To "python-win32@python.org" ; "Mark Hamm

Re: [python-win32] python-win32 Digest, Vol 258, Issue 1

2025-03-01 Thread Wuping Xin via python-win32
.org When replying, please edit your Subject line so it is more specific than "Re: Contents of python-win32 digest..." Today's Topics: 1. Python Active Scripting Debug (Wuping Xin) -- Message: 1 Date: Sat, 0

[python-win32] Python Active Scripting Debug

2025-02-28 Thread Wuping Xin via python-win32
Hi All, I am trying to debug Python Active Scripting, using Visual Studio. I am 100% sure it should work but I just cannot get it work. I've installed the debug symbols of the Python version, and installed Visual Studio Python Native Development tools. I also set the "Debugging" registry e

Re: [python-win32] Creating COM objects in a new process

2024-02-26 Thread Wuping Xin
This is related the COM instance model implemented on the COM server side, not on the client side. Specifically, in the start-up code of the COM server application, there should be a call to CoRegisterClassObject(CLSID, pUnk, dwClsContext, flags, &dwRegister). The key point is the fourth param

[python-win32] pywin32 incompatible with Python 3.12

2024-02-07 Thread Wuping Xin
Python 3.12 removed the module 'imp', but pyscript.py still relies on 'import imp' - this will lead to: ModuleNotFoundError: No module named 'imp' pyscript.py", line 213, in InitNew import imp ModuleNotFoundError: No module named 'imp' Solutions? Wuping ___

Re: [python-win32] python-win32 Digest, Vol 242, Issue 2

2023-09-05 Thread Wuping Xin
Did you run your "wrapped exe" package on the same computer where the package was wrapped, or on a new computer? If it was running on a new computer, probably it won't work because pywin32 is dependent on certain system registry entries. PyInstaller does not seem to package the registry. W

Re: [python-win32] Python Active Scripting Error - should I ignore it?

2023-06-29 Thread Wuping Xin via python-win32
? -- Original Message -- From "Wuping Xin" mailto:wup...@caliper.com>> To "Python-win32@python.org<mailto:Python-win32@python.org>" mailto:Python-win32@python.org>> Date 6/29/2023 2:15:27 PM Subject Python Active Scripting Error - should I ignore it? When I runn

[python-win32] Python Active Scripting Error - should I ignore it?

2023-06-29 Thread Wuping Xin via python-win32
When I running a Python Active Script, DebugView captured the following errrors - any advice? [22076] File "C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\framework.py", line 729, in SetScriptSite [22076] from . import debug [22076] File

Re: [python-win32] Question about pywin32 and Anaconda

2023-06-07 Thread Wuping Xin
all.py) > does not mention anaconda. > > The fact anaconda ships a version of pywin32 with it has caused problems > though - maybe that's in a fork of theirs? If so, you need to ask them. > > Mark > On 2023-06-07 9:18 a.m., Wuping Xin wrote: > > pywin32_postinst

[python-win32] Question about pywin32 and Anaconda

2023-06-07 Thread Wuping Xin
pywin32_postinstall.py, line 406, "SKIP_ANACONDA", why? Does that mean Anaconda is NOT whole-heartedly supported by pywin32? ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-17 Thread Wuping Xin via python-win32
Message -- From "Wuping Xin" mailto:wup...@caliper.com>> To "Mark Hammond" mailto:mhamm...@skippinet.com.au>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mailto:Python-win32@python.org>> Date 4/17/2023 8:42:14 AM Subject Re[

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-17 Thread Wuping Xin via python-win32
argspec(func).args) == 1: return func() else: return func(*args) Wuping -- Original Message -- From "Mark Hammond" mailto:mhamm...@skippinet.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-16 Thread Wuping Xin via python-win32
) Then we can make VBA, Delphi, C++ all clients happy. Agree? Should I submit a pull request? Wuping -- Original Message -- From "Wuping Xin" mailto:wup...@caliper.com>> To "Mark Hammond" mailto:mhamm...@skippinet.com.au>> Cc "Python-win32@pyth

[python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-16 Thread Wuping Xin via python-win32
For the following code, the method "GetPerson" has no explicit argument (except self). class MyCOMObject: _public_methods_ = ["GetPerson"] #_reg_clsid_ = '{44ee76c7-1290-4ea6-8189-00d5d7cd712a}' #_reg_desc_ = "My COM server" #_reg_progid_ = "MyCOMObject" def get_person(self):

Re: [python-win32] in-process COM DLL in Python

2023-04-15 Thread Wuping Xin
Forget it. I figured it our by looking into Chapter 12 of the Book - Python Programming On Win32. What a Bible it is. Cheers. -- Original Message -- From "Wuping Xin" To python-win32@python.org Date 4/15/2023 5:27:47 PM Subject in-process COM DLL in Python I'd

[python-win32] in-process COM DLL in Python

2023-04-15 Thread Wuping Xin
I'd like to return another Python object, using a method of a COM object defined using Python, something like below - is that doable? For in process COM object defined through Python, is there any limitation about the types that can be returned from COM method? class Person: _public_metho

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-17 Thread Wuping Xin via python-win32
ARNING EXTERNAL EMAIL Feel free to put a PR up! Cheers, Mark On 14/03/2023 3:10 pm, Wuping Xin wrote: Thank you again Mark. In framework.py, Line 223 - Line 235, I see that it only searches for [source, default] interface on the coclass. That means, multiple even

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Wuping Xin via python-win32
ally create the Source/EventSink connection. Wuping -- Original Message -- From "Mark Hammond" mailto:mhamm...@skippinet.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mail

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Wuping Xin via python-win32
ilto:mhamm...@skippinet.com.au>> To "Wuping Xin" mailto:wup...@caliper.com>> Cc "Python-win32@python.org<mailto:Python-win32@python.org>" mailto:Python-win32@python.org>> Date 3/13/2023 8:45:37 PM Subject Re: [python-win32] How to enable events for Py

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Wuping Xin
ginal Message -- From "Mark Hammond" To "Wuping Xin" ; python-win32@python.org Date 3/12/2023 10:54:23 PM Subject Re: [python-win32] How to enable events for Python Active Scripting? It's difficult to know what exactly you mean, but if it is how to use IConnectionPo

[python-win32] How to enable events for Python Active Scripting?

2023-03-12 Thread Wuping Xin
I have a host application that uses Python Active Scripting. That host application implements IConnectionPoint / IConnectionPointContainers etc, and I am able to set COM event callbacks in C++. But I am having a hard time to figure out how to set COM event callback with Python Active Scripti