Bug 2402682
| Summary: | reuse (>=6.0.0) pulls in python3-magic which conflicts with python3-file-magic | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nils Philippsen <nphilipp> |
| Component: | reuse | Assignee: | Jan Staněk <jstanek> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 43 | CC: | jstanek, python-packagers-sig, redhat.frbq0 |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | Flags: | jstanek:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| URL: | https://bodhi.fedoraproject.org/updates/FEDORA-2025-70813e10fd#comment-4376157 | ||
| Whiteboard: | |||
| Fixed In Version: | reuse-6.1.2-2.fc42 reuse-6.1.2-3.fc43 reuse-6.1.2-3.fc42 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-10-19 02:38:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nils Philippsen
2025-10-09 08:44:07 UTC
This is indeed unfortunate. It also took me on a bit of a rabbit hole hunt of what the `python3-file-magic` package actually is – because there is an orphaned python3-file-magic (https://src.fedoraproject.org/rpms/python3-file-magic/) SRPM; only later I realized the python3-file-magic are actually python bindings from the file package. TIL. The question is what to do with that. The most clean solution would probably be to teach reuse to be able to utilize the system bindings if available; from the https://github.com/ahupp/python-magic/blob/master/COMPAT.md, it looks that they should be compatible enough, but the reuse code would need massaging to only use the compat API. The quick'n'dirty solution would be to fall back to one of the other detection mechanism (charset-normalizer). Given that maintaining reuse is not the main job I have, I'm going to switch to charset-normalizer for the time being (or for good) and call this hopefully fixed. Nevertheless, if you want to be even more helpful, raising this issue upstream (or even opening a PR) may help us to switch back to the apparently faster libmagic-based encoding detection. FEDORA-2025-a4093addcb (reuse-6.1.2-2.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-a4093addcb FEDORA-2025-6828ad5790 (reuse-6.1.2-2.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-6828ad5790 FEDORA-2025-a4093addcb has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-a4093addcb` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a4093addcb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-6828ad5790 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6828ad5790` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6828ad5790 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. As per feedback on https://bodhi.fedoraproject.org/updates/FEDORA-2025-a4093addcb#comment-4385328, just removing the dependency does not solve the issue. The problem seems to be that as long as python3-file-magic is installed on the system, reuse detects a python module named `python-magic`, assumes it is the one from `python3-magic` and tries to use it as such, leading to further errors. Looks like we will need to patch the code to somehow resolve that. FEDORA-2025-6828ad5790 (reuse-6.1.2-2.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-cee53fc856 (reuse-6.1.2-3.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-cee53fc856 FEDORA-2025-43524419d3 (reuse-6.1.2-3.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-43524419d3 FEDORA-2025-43524419d3 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-43524419d3` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-43524419d3 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-cee53fc856 has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cee53fc856` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cee53fc856 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. *** Bug 2406255 has been marked as a duplicate of this bug. *** FEDORA-2025-cee53fc856 (reuse-6.1.2-3.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-43524419d3 (reuse-6.1.2-3.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |