Skip to content

sysconfig.get_config_vars() fails on Windows when dynamic loading is disabled #99201

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

Closed
philthompson10 opened this issue Nov 7, 2022 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@philthompson10
Copy link

philthompson10 commented Nov 7, 2022

Bug report

A change was made in Python v3.8 where, on Windows, EXT_SUFFIX was initialised from the first element of the list returned by _imp.extension_suffixes(). In previous versions this was hardcoded to '.pyd'. When HAVE_DYNAMIC_LOADING is not defined the list of suffixes will always be empty resulting in a IndexError exception being raised.

Your environment

Windows. Python v3.8 to v3.11.

@FFY00
Copy link
Member

FFY00 commented Nov 21, 2022

Fixed by #99274

@FFY00 FFY00 closed this as completed Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants