adang1345 / delvewheel

Self-contained Python wheels for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to execute on Python 3.8 or earlier

isc-adang opened this issue · comments

>py -3.8 -m delvewheel
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python38\lib\site-packages\delvewheel\__main__.py", line 4, in <module>
    from .wheel_repair import WheelRepair
  File "C:\Program Files\Python38\lib\site-packages\delvewheel\wheel_repair.py", line 13, in <module>
    from . import patch_dll
  File "C:\Program Files\Python38\lib\site-packages\delvewheel\patch_dll.py", line 76, in <module>
    on_error: str = 'raise') -> tuple[set[str], set[str], set[str]]:
TypeError: 'type' object is not subscriptable

Type hinting with built-in collection types was introduced with PEP 585 in Python 3.9, so a TypeError occurs with earlier Python versions.