Bug 2020606 - python3-magic not installable due to python3-file-magic Obsoletes
Summary: python3-magic not installable due to python3-file-magic Obsoletes
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-magic
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1899279
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-05 11:32 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2025-07-08 01:24 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-13 15:47:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources file pull-request 33 0 None None None 2024-11-15 03:20:11 UTC

Description Dominik 'Rathann' Mierzejewski 2021-11-05 11:32:00 UTC
Description of problem:
It's not possible to install python3-magic without using -x python3-file-magic because python3-file-magic has Obsoletes: python3-magic < 5.40-9.fc35.

Version-Release number of selected component (if applicable):
python-magic-0.4.22-3.fc35

How reproducible:
Always

Steps to Reproduce:
1. dnf install python3-magic

Actual results:
python3-file-magic-5.40-9.fc35.noarch gets installed.

Expected results:
python3-magic-0.4.22-3.fc35 gets installed.

Comment 1 Ben Cotton 2022-11-29 17:14:50 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ben Cotton 2022-12-13 15:47:13 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Dominik 'Rathann' Mierzejewski 2022-12-13 20:54:06 UTC
Still an issue in rawhide.

Comment 4 Ben Cotton 2023-02-07 14:52:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 5 Davide Cavalca 2023-11-25 16:40:52 UTC
I just hit this now in https://bugzilla.redhat.com/show_bug.cgi?id=2251448. According to https://github.com/ahupp/python-magic/blob/master/COMPAT.md python-magic provides a compatibility interface for file-magic users that provides the same API as the latter.

Comment 6 Zbigniew Jędrzejewski-Szmek 2023-11-26 10:21:52 UTC
I'm seeing this in rawhide:
$ sudo dnf5 upgrade
...
Problem: package rpmlint-2.5.0-1.fc40.noarch requires python3.12dist(python-magic), but none of the providers can be installed
  - package python3-file-magic-5.45-1.fc40.noarch conflicts with python3-magic < 5.45-1.fc40 provided by python3-magic-0.4.27-5.fc40.noarch
  - installed package python3-file-magic-5.45-1.fc40.noarch obsoletes python3-magic < 5.45-1.fc40 provided by python3-magic-0.4.27-5.fc40.noarch
  - cannot install the best update candidate for package rpmlint-2.4.0-11.fc40.noarch
  - cannot install the best update candidate for package python3-file-magic-5.45-1.fc40.noarch

Comment 7 Bytez 2024-01-03 20:09:56 UTC
Still an issue in Fedora 38:

```
$ sudo dnf install python3-magic
Dependencies resolved.
===============================================================================================
 Package                      Architecture     Version                  Repository        Size
===============================================================================================
Installing:
 python3-file-magic           noarch           5.44-3.fc38              fedora            20 k

Transaction Summary
===============================================================================================
Install  1 Package
```

Comment 8 Kalev Lember 2024-02-06 00:09:00 UTC
I went ahead and opened https://src.fedoraproject.org/rpms/file/pull-request/31 to drop the obsoletes from python3-file-magic.

Comment 9 Kalev Lember 2024-02-06 00:09:13 UTC
I went ahead and opened https://src.fedoraproject.org/rpms/file/pull-request/31 to drop the obsoletes from python3-file-magic.

Comment 10 Aoife Moloney 2024-02-15 22:54:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 11 Aoife Moloney 2025-04-25 10:01:39 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 12 Fedora Admin user for bugzilla script actions 2025-07-08 01:24:01 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.