astral-sh / astral-sh/python-build-standalone
Comtypes access violation on X86 Windows builds
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 314
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 27
Description
For the [NVDA Screen reader](https://github.com/nvaccess/nvda/), the project is currently pinpointed at Python 3.11 X86. Given there are no builds of Python 3.11.9+ and we migrated to uv recently, I'm proposing/testing this project with these builds.
One of the reason we can't migrate is that with the standalone Python builds, we're getting access violations. I created [a minimal repro example](https://github.com/LeonarddeR/comtypesSAPI).
Some results:
- With Python 3.11.9 x86 from python.org, running this script is fine
- With 3.11.12X86 using uv, we're getting `OSError: exception: access violation reading 0x00000030`
- With X64 builds, all seems well, though we're not yet read to migrate to X64
- Even with Python 3.13 X86 and 3.14 alpha X86, the access violation can be reproduced.
Contributor guide
Assessment
This issue has not been assessed yet.