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.

This is taken from our CI builds.

21:30:11         nox > Creating virtualenv using python3 in .nox/runtests-parametrized-3-coverage-true-crypto-none-transport-tcp
21:30:16         nox > Command python -cimport sys; from distutils.sysconfig import get_python_lib; sys.stdout.write(get_python_lib()) failed with exit code 1:
21:30:16         Traceback (most recent call last):
21:30:16           File "<string>", line 1, in <module>
21:30:16           File "<frozen importlib._bootstrap>", line 969, in _find_and_load
21:30:16           File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
21:30:16           File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
21:30:16           File "<frozen importlib._bootstrap>", line 577, in module_from_spec
21:30:16           File "/tmp/kitchen/testing/.nox/runtests-parametrized-3-coverage-true-crypto-none-transport-tcp/lib/python3.5/site-packages/_distutils_hack/__init__.py", line 82, in create_module
21:30:16             return importlib.import_module('._distutils', 'setuptools')
21:30:16           File "/tmp/kitchen/testing/.nox/runtests-parametrized-3-coverage-true-crypto-none-transport-tcp/lib/python3.5/importlib/__init__.py", line 126, in import_module
21:30:16             return _bootstrap._gcd_import(name[level:], package, level)
21:30:16           File "<frozen importlib._bootstrap>", line 981, in _gcd_import
21:30:16           File "<frozen importlib._bootstrap>", line 931, in _sanity_check
21:30:16         SystemError: Parent module 'setuptools' not loaded, cannot perform relative import

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
exhumacommented, Aug 31, 2020

I can confirm this. We have the same issue.

A simple way to reproduce:

python3 -m venv env
./env/bin/pip install "setuptools == 50.0.0"
./env/bin/python -c "import distutils"

I am in the process of blacklisting 50.0.0 in our dependencies using setuptools != 50.0.0 in our dependencies.

0reactions
jaracocommented, Sep 1, 2020

I suspect this issue is the same as #2352. The error message is the same, so assuming so unless I hear otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Files :: Anaconda.org
Version: 50.0.0 ... Label: broken ... conda, 932.8 kB, | linux-ppc64le/setuptools-50.0.0-py36h9f0ad1d_0.tar.bz2, 2 years and 3 days ago, cf-staging ...
Read more >
50.0.0 Jamzar100 Spreadsheet Tracker Update - Reddit
50.0.0 Jamzar100 Spreadsheet Tracker Update ... Broken DragAndDrop bug found, video of recreating + project files [ue 4.26-5.0.2].
Read more >
ruamel.yaml.clib / Tickets / #3 Broken with setuptools==50.0.0
I can pin setuptools back to 49.6.0, where it worked, but I'd be worried about other packages breaking. Discussion.
Read more >
Wrap pip to force pip<20.3 and setuptools<50.0.0 · 4793ceba5f ...
Wrap pip to force pip<20.3 and setuptools<50.0.0 ... is needed to install blessings (an indirect dependency of charm-tools) since then the gate got...
Read more >
509618 – is bind-libs broken? - Red Hat Bugzilla
... /usr/lib64/libisccfg.so.50.0.0 /usr/lib64/liblwres.so.50 ... Jul 4 07:24 /usr/lib64/liblwres.so.50 -> liblwres.so.50.2.0 Note the broken symlinks :-(.
Read more >

github_iconTop Related Medium Post

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