Bug 1679630
| Summary: | AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__' | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michal Konecny <mkonecny> | |
| Component: | python-setuptools | Assignee: | Miro Hrončok <mhroncok> | |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | high | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 29 | CC: | infra-sig, lewk, mhroncok, mkonecny, pviktori, rbarlow, rkuska | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | python-setuptools-40.8.0-1.fc29 python-setuptools-40.8.0-1.fc28 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1686810 (view as bug list) | Environment: | ||
| Last Closed: | 2019-03-11 22:41:24 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1686810, 1726274 | |||
|
Description
Michal Konecny
2019-02-21 15:43:51 UTC
Can you workaround this by updating both pip and setuptools in your virtual environment? Anyway, updating to 40.8.0 is technically possible (we have that version in F30), but somebody would need to check if there are no backwards incompatible changes. Yes, I can workaround this when I don't use --system-site-packages flag when creating virtual environment. But still this is something that could hit plenty of Fedora users. Can you workaround this by updating both pip and setuptools in your virtual environment even if you use --system-site-packages? (I'm asking because I want to understand this problem better, I'm not trying to talk myself out of fixing it.) (Reading the upstream issue, I assume the answer is no.) This is the most important issue: https://github.com/pypa/pip/issues/6264 Upstream pip is broken, but Fedora users will get it in venv via explicit update or in virtualenv (fetches newest version by default). We should really update setuptools if it is at least bit possible. It doesn't work if you have newest version of setuptools in virtual environment and using --system-site-packages. I have setuptools 40.8.0 in virtual environment and still experiencing this issue. That's what I thought. Thanks for clarifying. We have 39.2.0 in F29 and F28. I'm reading the changes in https://setuptools.readthedocs.io/en/latest/history.html that happened since. - Drop support for Python 3.3 -> we have 3.3 on F28, but it bundles it's own wheel. ✔️ - Deprecated upload and register commands -> not removed yet. ✔️ - Officially deprecated the requires parameter in setup() -> not removed yet. ✔️ - Resource paths are passed to pkg_resources.resource_string and similar no longer accept paths that traverse parents -> results in DeprecationWarning only. ✔️ I think we are OK. Will prep PRs. > We have 39.2.0 in F29 and F28.
Correction. We have 40.4.3 in F29 and 39.2.0 in F28.
https://src.fedoraproject.org/rpms/python-setuptools/pull-request/17 https://src.fedoraproject.org/rpms/python-setuptools/pull-request/18 python-setuptools-40.8.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0bf6b7eaf9 python-setuptools-40.8.0-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-80802d12fa python-setuptools-40.8.0-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-80802d12fa python-setuptools-40.8.0-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0bf6b7eaf9 Can you please verify the update fixes this problem? Tested on F29 and it fixed the issue for me. Tested on F28 and it works for me. python-setuptools-40.8.0-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. python-setuptools-40.8.0-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. |