Skip to content

Failed to install checksec.py on win11 arm64 #145

@ioancea

Description

@ioancea

It seems the deps of checksec.py are a little bit left behind - the last version depends on an older lief (https://github.com/Wenzel/checksec.py/blob/master/pyproject.toml#L17) and, also, requires >= python3.10 but < 3.13 (https://github.com/Wenzel/checksec.py/blob/master/pyproject.toml#L16).
Because of that, it fails easily on platforms that do not contain wheels. Example:

python -m pip install checksec.py -v -U 
2025-07-14 17:22:01,344 INFO - Using pip 25.1.1 from C:\Python311_arm64\Lib\site-packages\pip (python 3.11)
2025-07-14 17:22:01,344 INFO - Collecting checksec.py
2025-07-14 17:22:01,344 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/58/22/d18e26d71977ebcd94d7d1fc5fb45816e45c7adf0f78581f3af8b5ad87d2/checksec_py-0.7.4-py3-none-any.whl.metadata
2025-07-14 17:22:01,344 INFO -   Downloading checksec_py-0.7.4-py3-none-any.whl.metadata (9.5 kB)
2025-07-14 17:22:01,344 INFO - Requirement already satisfied: docopt==0.6.2 in c:\python311_arm64\lib\site-packages (from checksec.py) (0.6.2)
2025-07-14 17:22:01,344 INFO - INFO: pip is looking at multiple versions of checksec-py to determine which version is compatible with other requirements. This could take a while.
2025-07-14 17:22:01,344 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/bb/f7/e6846ffc08f192c6ab4b531df94851133a71023cdf40d81e56d5b25949dd/checksec_py-0.7.3-py3-none-any.whl.metadata
2025-07-14 17:22:01,344 INFO -   Downloading checksec_py-0.7.3-py3-none-any.whl.metadata (9.5 kB)
2025-07-14 17:22:01,345 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/09/78/963e189fb696c5667f0ea78d153615f6fa23b4c81ed47e3343ee2ce45978/checksec_py-0.7.2-py3-none-any.whl.metadata
2025-07-14 17:22:01,345 INFO -   Downloading checksec_py-0.7.2-py3-none-any.whl.metadata (9.5 kB)
2025-07-14 17:22:01,345 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/85/50/046a1a4cab8da5b72ea694466e5204653d1b72f9bc1814e634e88259ee07/checksec_py-0.7.1-py3-none-any.whl.metadata
2025-07-14 17:22:01,345 INFO -   Downloading checksec_py-0.7.1-py3-none-any.whl.metadata (9.5 kB)
2025-07-14 17:22:01,345 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/34/f1/14cf69261997bdfdfaa21701fcfc515b5e55f8ae5e75ee74b2749f697a63/checksec_py-0.7-py3-none-any.whl.metadata
2025-07-14 17:22:01,345 INFO -   Downloading checksec_py-0.7-py3-none-any.whl.metadata (9.5 kB)
2025-07-14 17:22:01,345 INFO -   Obtaining dependency information for checksec.py from https://files.pythonhosted.org/packages/f1/56/03b28a5ff34919355a60a6f8d418ea496dad57c8927772ea002d47f812fe/checksec.py-0.6.2-py3-none-any.whl.metadata
2025-07-14 17:22:01,346 INFO -   Downloading checksec.py-0.6.2-py3-none-any.whl.metadata (9.3 kB)
2025-07-14 17:22:01,346 INFO - Collecting lief==0.11.0 (from checksec.py)
2025-07-14 17:22:01,346 INFO -   Downloading lief-0.11.0.zip (15.7 MB)
2025-07-14 17:22:03,871 INFO -      --------------------------------------- 15.7/15.7 MB 45.0 MB/s eta 0:00:00
2025-07-14 17:22:03,872 INFO -   Installing build dependencies: started
2025-07-14 17:22:05,097 INFO -   Running command pip subprocess to install build dependencies
2025-07-14 17:22:05,098 INFO -   Using pip 25.1.1 from C:\Python311_arm64\Lib\site-packages\pip (python 3.11)
2025-07-14 17:22:05,100 INFO -   Collecting setuptools>=40.8.0
2025-07-14 17:22:05,100 INFO -     Obtaining dependency information for setuptools>=40.8.0 from https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl.metadata
2025-07-14 17:22:05,100 INFO -     Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
2025-07-14 17:22:05,100 INFO -   Using cached setuptools-80.9.0-py3-none-any.whl (1.2 MB)
2025-07-14 17:22:05,100 INFO -   Installing collected packages: setuptools
2025-07-14 17:22:07,293 INFO -   Installing build dependencies: finished with status 'done'
2025-07-14 17:22:07,293 INFO -   Getting requirements to build wheel: started
2025-07-14 17:22:07,294 INFO -   Getting requirements to build wheel: finished with status 'error'
2025-07-14 17:22:07,423 INFO -   Successfully installed setuptools-80.9.0
2025-07-14 17:22:07,424 INFO -   Running command Getting requirements to build wheel
2025-07-14 17:22:07,424 INFO -   <string>:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-07-14 17:22:07,425 INFO -   Traceback (most recent call last):
2025-07-14 17:22:07,425 INFO -     File "C:\Python311_arm64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
2025-07-14 17:22:07,426 INFO -       main()
2025-07-14 17:22:07,426 INFO -     File "C:\Python311_arm64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
2025-07-14 17:22:07,426 INFO -       json_out["return_val"] = hook(**hook_input["kwargs"])
2025-07-14 17:22:07,426 INFO -                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-14 17:22:07,426 INFO -     File "C:\Python311_arm64\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
2025-07-14 17:22:07,426 INFO -       return hook(config_settings)
2025-07-14 17:22:07,426 INFO -              ^^^^^^^^^^^^^^^^^^^^^
2025-07-14 17:22:07,427 INFO -     File "C:\Windows\Temp\pip-build-env-4o5y0_z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
2025-07-14 17:22:07,427 INFO -       return self._get_build_requires(config_settings, requirements=[])
2025-07-14 17:22:07,427 INFO -              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-14 17:22:07,427 INFO -     File "C:\Windows\Temp\pip-build-env-4o5y0_z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
2025-07-14 17:22:07,427 INFO -       self.run_setup()
2025-07-14 17:22:07,427 INFO -     File "C:\Windows\Temp\pip-build-env-4o5y0_z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
2025-07-14 17:22:07,427 INFO -       super().run_setup(setup_script=setup_script)
2025-07-14 17:22:07,427 INFO -     File "C:\Windows\Temp\pip-build-env-4o5y0_z7\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
2025-07-14 17:22:07,427 INFO -       exec(code, locals())
2025-07-14 17:22:07,428 INFO -     File "<string>", line 12, in <module>
2025-07-14 17:22:07,428 INFO -   ImportError: cannot import name 'copy_file' from 'setuptools.command.build_ext' (C:\Windows\Temp\pip-build-env-4o5y0_z7\overlay\Lib\site-packages\setuptools\command\build_ext.py)
2025-07-14 17:22:07,428 INFO -   error: subprocess-exited-with-error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions