Closed XDeviation closed 4 months ago
Thanks for reporting. I tried to reproduce locally with setuptools==71.0.1, and I found similar issues to what you report above (I don't know which project/context you're running in, or what options/configuration you are using, so I did not get the exact same traceback).
However, it seems that the metadata shipped with setuptools==71.0.1 is faulty, and this is the cause of this error. Indeed, the 71.0.1 release has been yanked from PyPI, as noted in this warning message when I install 71.0.1.
$ .venv_test/bin/pip install setuptools==71.0.1
Collecting setuptools==71.0.1
Downloading setuptools-71.0.1-py3-none-any.whl.metadata (6.5 kB)
WARNING: The candidate selected for download or install is a yanked version: 'setuptools' candidate (version 71.0.1 at https://files.pythonhosted.org/packages/39/11/6159cc30f99dbdccac3c74d67277505d0e0bfc059e6cc57ef2eefc9b8751/setuptools-71.0.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8))
Reason for being yanked: https://github.com/pypa/setuptools/issues/4480
...
If I use any surrounding setuptools version instead (I've tested 71.0.0, 71.0.2, and 71.0.3) I am not able to reproduce this issue at all. So I believe this issue is caused by the faulty metadata in setuptools (see https://github.com/pypa/setuptools/issues/4480 for the upstream issue), and since this release has already been yanked and replaced with newer/working versions, I consider this issue resolved.
Describe the bug Environment:
when I run fawltydeps, it will raise error:
I add some try except to this code, and I found that It failed to parse setuptools, see this log:
To Reproduce Install setuptools == 68.0.0
Expected behavior Add setuptools lock
Environment
Additional context Add any other context about the problem here.