You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment (please complete the following information):
System and Version : macOS 12.4 on M1
Python: tried 3.8, 3.9, and 3.10 and all failed
Additional context
~/tmp via 🐍 3.8.13
➜ pip install --upgrade pip setuptools
Requirement already satisfied: pip in /Users/proth/.pyenv/versions/3.8.13/lib/python3.8/site-packages (22.0.4)
Collecting pip
Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 10.7 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /Users/proth/.pyenv/versions/3.8.13/lib/python3.8/site-packages (56.0.0)
Collecting setuptools
Downloading setuptools-64.0.3-py3-none-any.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 13.2 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
Attempting uninstall: setuptools
Found existing installation: setuptools 56.0.0
Uninstalling setuptools-56.0.0:
Successfully uninstalled setuptools-56.0.0
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
Successfully installed pip-22.2.2 setuptools-64.0.3
~/tmp via 🐍 3.8.13 took 3s
➜ pip install lief
Collecting lief
Using cached lief-0.12.1.zip (15.0 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/9g/py_0zbys7fv5v29lg6xntncm0000gn/T/pip-install-fnzqy2cc/lief_697349fd73ee4716b52db708927610ec/setup.py", line 12, in <module>
from setuptools.command.build_ext import build_ext, copy_file
ImportError: cannot import name 'copy_file' from 'setuptools.command.build_ext' (/Users/proth/.pyenv/versions/3.8.13/lib/python3.8/site-packages/setuptools/command/build_ext.py)
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
The text was updated successfully, but these errors were encountered:
Describe the bug
LIEF fails to build with setuptools versions greater than 64.0.0 that was released yesterday
To Reproduce
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: