Skip to content

sysconfig.get_config_var("LDLIBRARY") is now defined in Windows Python v3.13.0b1 #343

@JamesParrott

Description

@JamesParrott

I've been playing around with importing fewer dependencies, and solved my own issue. I'm logging it in case it helps anyone else:

Error (Python 3.11/3.12, Windows):
Cannot subscript None at:

PYLDLIB = sysconfig.get_config_var("LDLIBRARY")

# Strip libpython3.11.a.so => python3.11.a
PYLDLIB = PYLDLIB[3:] if PYLDLIB.startswith("lib") else PYLDLIB

Possible Solution: Use pre-release beta Python 3.13
https://www.python.org/downloads/release/python-3130b1/

Fixed upstream:
python/cpython#110049

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions