question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vendored distutils incompatible with Python 3.5

See original GitHub issue

As 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sjoerdjobcommented, Sep 1, 2020

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

0reactions
jaracocommented, Sep 1, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found