Vendored distutils incompatible with Python 3.5
See original GitHub issueAs part of setuptools 50.0, the vendored (“local”) distutils implementation has been chosen over the stdlib version.
Looking at https://github.com/pypa/setuptools/blob/17cb9d6bf249cefe653d3bdb712582409035a7db/setuptools/_distutils/util.py#L423 we see that subprocess._optim_args_from_interpreter_flags()
is called. However, this is not present on Python 3.5.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Collaboration on handling Python 3.12 incompatible changes ...
There is a bug on Python 3.12 (without distutils): if pip is imported first, import setuptools and import distutils fails since _distutils_hack ...
Read more >History - setuptools 65.6.3.post20221216 documentation
#3066: Added vendored dependencies for tomli, validate-pyproject. ... #2357: Restored Python 3.5 support in distutils.util for missing subprocess.
Read more >Encountered an error while installing jupyter notebook using pip
You need to update your setuptools first. pip install setuptools --upgrade. There was a change in python 3.8 that caused this issue with ......
Read more >How to fix updated pip: RuntimeError: Python 3.5 or later is ...
I updated pip on Ubuntu 14.04 with pip install pip --upgrade and now it's broken, saying it needs Python 3.5 or above, but...
Read more >wheel Documentation - Read the Docs
Similarly, to convert a Windows installer (made using python setup.py bdist_wininst) to a wheel: wheel convert yourinstaller.exe.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for the patched build. The fix works insofar that it no longer fails on due to the AttributeError. It instead fails in a way that I believe to be issue https://github.com/pypa/setuptools/issues/2352
I’ve pushed a compatibility change for the reported issue. Can you test with this patched build in the environment that failed and report if there are any other incompatibilities?