-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import with setuptools 50 #2352
SystemError: Parent module 'setuptools' not loaded, cannot perform relative import with setuptools 50 #2352
Comments
Found the same issue with python 3.6.1 (pyenv) |
Same here, Ubuntu 16.04. Seems to be another symptom of #2350.
|
The same can be said for Matplotlib:
|
Same issue. pip install "setuptools!=50.0" --force-reinstall and in
|
Experiencing a problem where `pip install pipenv` yields: ``` SystemError: Parent module 'setuptools' not loaded, cannot perform relative import ``` Fix inspired by: pypa/setuptools#2352
Experiencing a problem where `pip install pipenv` yields: ``` SystemError: Parent module 'setuptools' not loaded, cannot perform relative import ``` Fix inspired by: pypa/setuptools#2352
Experiencing a problem where `pip install pipenv` yields: ``` SystemError: Parent module 'setuptools' not loaded, cannot perform relative import ``` Fix inspired by: pypa/setuptools#2352
Experiencing a problem where `pip install pipenv` yields: ``` SystemError: Parent module 'setuptools' not loaded, cannot perform relative import ``` Fix inspired by: pypa/setuptools#2352
Experiencing a problem where `pip install pipenv` yields: ``` SystemError: Parent module 'setuptools' not loaded, cannot perform relative import ``` Fix inspired by: pypa/setuptools#2352
Context: pypa/setuptools#2352 PiperOrigin-RevId: 329312581
Context: pypa/setuptools#2352 PiperOrigin-RevId: 329312581
The workaround described in the changelog worked for me:
|
Same issue here with python 3.5.2,
Downgrading to |
Context: pypa/setuptools#2352 PiperOrigin-RevId: 329312581
setuptools==50 doesn't work with python older than python3.8. There are a number of issues [0][1][2] the first of which we are tripping over. Be conservative here and install older setuptools until these issues on python3.5, 3.6, and 3.7 are sorted out. [0] pypa/setuptools#2352 [1] https://github.com/pypa/setuptools/issues/2363 [2] pypa/setuptools#2357 Change-Id: I1ae7251c8a4c214544524871fdfe51e947b638f8
196: Blacklist setuptools 50.0 while the build is not fixed r=fdns a=fdns pypa/setuptools#2352 bors r+ Co-authored-by: Felipe Espinoza <[email protected]>
Good insight. Sounds like a good mitigation. |
New version of setuptools breaks our install model. This change uses one of the suggested workarounds for it. Upstream issue: pypa/setuptools#2352
New version of setuptools breaks our install model. This change uses one of the suggested workarounds for it. Upstream issue: pypa/setuptools#2352
Is this change, as implemented in 50.0.2, supposed to eliminate the need for the If so, it is not working out that way. Seeing the same problem as before (without the workaround) and the build is picking up 50.0.2 Ubuntu 18.04 with |
We are using python 3.6.1 which suffers from pypa/setuptools#2352 even with setuptools 50.0.1 (which should fix the "bug" for newer py36) PiperOrigin-RevId: 329607958
@MartinFalatic - Can you share a log/traceback? The particular exception in the original issue report was removed in Python 3.6.3 RC1+ as part of the fix for https://bugs.python.org/issue30876. Note the absence of https://github.com/python/cpython/blob/v3.6.2/Lib/importlib/_bootstrap.py#L920-L923 in https://github.com/python/cpython/blob/v3.6.7/Lib/importlib/_bootstrap.py#L917-L930. |
Using setuptools 50.0.0 without workaround:
Using setuptools 50.0.2 without workaround:
Those appear to be identical. The following does get mentioned in the log during the main pip3 install part of the build (with and without the workaround). I mention it only for completeness as this problem is certainly affected by the setuptools version being >= 50. Note that setuptools is NOT being pinned in the requirements (as that would be problematic).
Also, 'dal' = django-autocomplete-light. |
It's worth noting that this was closed as duplicate when I brought it up here... #2356 (comment) Similar but perhaps not quite the same problem after all, perhaps. |
Context: pypa/setuptools#2352 PiperOrigin-RevId: 329312581
By default the image comes with setuptools==33.1.1. But pywikibot requires that setuptools>=40.1.0 be installed BEFORE pip tries to install it. Pin it to 49.3.0 since 50.0.0 seems to be broken for python 3.5 pypa/setuptools#2352. Added the `pip --version` command since the `pip install --upgrade pip` command otherwise seems to have no effect. Change-Id: I1583ae92084dd84f12359a8f3fcfdfb72214f1af
* fix cu102 link on pypi * fix setuptool import issue pypa/setuptools#2352
Latest version of setuptools is 60.7.1 https://setuptools.pypa.io/en/latest/history.html Hopefully this has fixed the problem pypa/setuptools#2352
Latest version of setuptools is 60.7.1 https://setuptools.pypa.io/en/latest/history.html On build and deploy of this cahnge this appears to have fixed the problem identified for setuptools version 50, here: pypa/setuptools#2352
Latest version of setuptools is 60.7.1 https://setuptools.pypa.io/en/latest/history.html On build and deploy of this cahnge this appears to have fixed the problem identified for setuptools version 50, here: pypa/setuptools#2352
pypa/setuptools#2352 has been resolved
pypa/setuptools#2352 has been resolved
After upgrading setuptools to 50.0 today, the environment fails to locate the entry points as it could not import distutils
The issue could not be found in the python 3.8 environment.
The text was updated successfully, but these errors were encountered: