Bug 2036438
| Summary: | python3-sphinxcontrib-zopeext-0.3.0-1.fc35 stops dnf automatic updates because of transaction error | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Edgar Hoch <edgar.hoch> |
| Component: | python-sphinxcontrib-zopeext | Assignee: | Jerry James <loganjerry> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 35 | CC: | loganjerry, mail, mhroncok |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | python-sphinxcontrib-zopeext-0.3.2-1.fc35 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-01-20 14:51:31 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: | |||
|
Description
Edgar Hoch
2022-01-01 17:14:51 UTC
The issue is that both packages want to install /usr/lib/python3.10/site-packages/sphinxcontrib/__init__.py. The python-sphinxcontrib-asyncio version reads:
```
__import__('pkg_resources').declare_namespace(__name__)
```
The python-sphinxcontrib-zopeext version reads:
```
# -*- coding: utf-8 -*-
"""
sphinxcontrib
~~~~~~~~~~~~~
This package is a namespace package that contains all extensions
distributed in the ``sphinx-contrib`` distribution.
:copyright: Copyright 2007-2009 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
__import__('pkg_resources').declare_namespace(__name__)
```
That is, they are the same as far as code goes, but the zopeext version adds a documentation string and a coding cookie.
I'm not sure what the right thing to do is. There is no parent sphinxcontrib package, which is where this file should really live. Maybe we should artificially create one, and have all of the various python-sphinxcontrib-* packages require it?
I am adding the python-sphinxcontrib-asyncio maintainer and Miro to CC, in hopes that one of them might have some advice.
Elliott Sales de Andrade has this to say on fedora-devel-list: I think these packages are wrong upstream. The `sphinxcontrib` directory is provided by python3-sphinx, and it specifically doesn't have `__init__.py` there. Those extensions should not be adding one, so as to keep the implicit namespace package nature of that directory: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages By the contents of the files, it appears they are trying to force it to be a pkg_resources-style namespace package: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#pkg-resources-style-namespace-packages But since Sphinx didn't do that in the first place, there's no guarantee that other packages will contain `__init__.py` (and indeed most do not). Upstream bug reports: https://github.com/sphinx-contrib/zopeext/issues/5 https://github.com/aio-libs/sphinxcontrib-asyncio/issues/12 FEDORA-2022-08e3944d2d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-08e3944d2d FEDORA-2022-08e3944d2d has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-08e3944d2d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-08e3944d2d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-08e3944d2d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-08e3944d2d FEDORA-2022-08e3944d2d has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-08e3944d2d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-08e3944d2d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2022-08e3944d2d has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |