-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripting with win32api fails in Python 3.12 #2254
Comments
pywin32 needs a new release, which I'm still working out how to do, sorry about that. |
Any way I can assist? |
Not really, but there are unreleased versions available from every change - eg, the latest can be found at https://github.com/mhammond/pywin32/actions/runs/8890105083, where you can scroll down and download the "artifacts". |
Thanks, I'll give it a shot. |
I pulled
However, when I tried registering Python as a scripting language (step 3 in the repro instructions above), I hit an exception complaining that pythonw_d.exe could not be found. Is it possible that those artifacts are built with debugging versions of the package? This step succeeded with the release version of
|
As for your second issue, I think I flipped the condition accidentally in https://github.com/mhammond/pywin32/pull/2169/files#diff-cb7b8aef3604d303af86f90cf1bbc9ad12ff857e8fba1f537fe429fef7e3e9e5R100 , should be an easy fix |
Right. Just change line 100 of register.py to |
Any wild guesses on the timeline for the next release? |
I have tested PR #2257 and I can confirm that it fixes the last failure I reported, and running the artifacts produced for that run also eliminates the first failure reported by this ticket. We're still hoping for some information on when we should expect a new release. |
Expected behavior
Module
win32api
imports successfully in Windows scripting (as it does in Python 3.11).Actual behavior
Attempting to import
win32api
raises an exception.Steps to reproduce the problem
py %PYTHON_DIR%\lib\site-packages\win32comext\axscript\client\pyscript.py
.cscript test.pys
and seeModuleNotFoundError
exception ("No module named 'imp'").System information
Python version and distribution:
3.12.3 from https://www.python.org/downloads/
pywin32 version:
306 (Installed from PyPI)
Windows Version:
Microsoft Windows [Version 10.0.19045.4291]
DLL locations:
C:\Python312\Lib\site-packages\pywin32_system32\pywintypes312.dll
C:\Python312\Lib\site-packages\pywin32_system32\pythoncom312.dll
The text was updated successfully, but these errors were encountered: