Skip to content
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

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

Open
philthompson10 opened this issue Nov 7, 2022 · 0 comments
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.

@philthompson10 philthompson10 added the type-bug An unexpected behavior, bug, or error label Nov 7, 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

1 participant