-
Notifications
You must be signed in to change notification settings - Fork 793
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
Import win32ui broken on Python 3.9 #1593
Comments
bump |
Similar issue with python 3.9 when installing 228 64bit from binaries and with 228 & 225 via PIP + post install script. win32ui is found but fails to import. |
nvm, i switched over to |
windbg traceback for
So what causes initialization failure is this line: https://github.com/mhammond/pywin32/blob/master/Pythonwin/win32control.h#L30 . Verified that if I comment out that line, win32ui loads fine. Unfortunately I have no idea what those lines are doing so I cannot propose a fix. |
That's very helpful, thanks, and I can reproduce this in visual studio - I didn't consider that an exception was being caught and ignored. Turns out we aren't holding the GIL when we call back into Python - I've no idea why this is different in 3.9 vs other versions, but the fix is simple and is safe in all versions. |
Thank you. This is a wheel package I built for anyone that need it until an official package is released (rename .zip to .whl): |
Thanks! Note that I just enabled 3.9 on CI, so every push will end up with wheels available as the artifacts of the CI run. |
The .whls can also be found here: [GitHub]: CristiFati/Prebuilt-Binaries - (master) Prebuilt-Binaries/PyWin32/v228. |
Expected behavior and actual behavior
Importing
win32ui
fails on Python 3.9Steps to reproduce the problem
Install a version of Python 3.9, I used that from conda-forge:
Version of Python and pywin32
The text was updated successfully, but these errors were encountered: