mhammond / pywin32

Python for Windows (pywin32) Extensions
4.91k stars 783 forks source link

Unable to Use Active Scripting Engine with pywin32 on Windows 11 #2137

Open daddun opened 9 months ago

daddun commented 9 months ago

The active scripting engine should be successfully registered and accessible for use with MSScriptControl.ScriptControl.

Execute \Python\Python312-32\Lib\site-packages\win32comext\axscript\client\pyscript.py.
Requesting elevation and retrying...
Registered: Python 

However, when attempting to invoke the Python script engine using MSScriptControl.ScriptControl, the following unhandled exception is thrown:

0x800a017c - ScriptControl: 
A script engine for the specified language cannot be created.

Python: 3.12 32bit pywin32: 306 pywin32 wheel: pywin32-306-cp312-cp312-win32.whl System: Windows 11 Professional Edition, 22H2