Bug 1933591 - eyeD3: ERROR: Bad plugin ('mimetype.py' ...) when listing available plugins while python3-file-magic is installed
Summary: eyeD3: ERROR: Bad plugin ('mimetype.py' ...) when listing available plugins w...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-eyed3
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1899279
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-01 08:10 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2025-07-25 19:08 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-16 07:37:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to skip tests requiring data files to be present (1.97 KB, patch)
2021-03-01 11:06 UTC, Dominik 'Rathann' Mierzejewski
no flags Details | Diff

Description Dominik 'Rathann' Mierzejewski 2021-03-01 08:10:01 UTC
Description of problem:
eyeD3 throws an error about mimetype.py plugin when listing available plugins.

Version-Release number of selected component (if applicable):
python3-eyed3-0.9.6-1.fc33.noarch

How reproducible:
Always.

Steps to Reproduce:
1. eyeD3 -L

Actual results:
eyed3.plugins:ERROR: Bad plugin ('mimetype.py', '/usr/lib/python3.9/site-packages/eyed3/plugins')
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/__init__.py", line 56, in load
    mod = __import__(mod_name, globals=globals(), locals=locals())
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/mimetype.py", line 33, in <module>
    _python_magic = MagicTypes()
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/mimetype.py", line 18, in __init__
    magic.Magic.__init__(self, mime=True, mime_encoding=False, keep_going=True)
TypeError: __init__() got an unexpected keyword argument 'mime'
...

Expected results:
No ERROR.

Additional info:
This is a regression from previous version (0.8-11.fc33).

Comment 1 Dominik 'Rathann' Mierzejewski 2021-03-01 08:16:16 UTC
I have python3-file-magic-5.39-3.fc33.noarch installed, which might be relevant.

Comment 2 Dominik 'Rathann' Mierzejewski 2021-03-01 10:19:53 UTC
All mimetype tests were skipped during build:

https://kojipkgs.fedoraproject.org//packages/python-eyed3/0.9.6/1.fc33/data/logs/noarch/build.log
...
tests/test_mimetype.py ssssssss                                          [ 35%]

Comment 3 Dominik 'Rathann' Mierzejewski 2021-03-01 11:06:21 UTC
Created attachment 1759946 [details]
patch to skip tests requiring data files to be present

The attached patch allows using simply:
%check
py.test-%{python3_version}

for the %check section (i.e. without ignoring any tests).

It'd be better to include upstream test data and run all tests, though, if possible.

Comment 4 David King 2021-03-01 11:58:32 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #1)
> I have python3-file-magic-5.39-3.fc33.noarch installed, which might be
> relevant.

The mimetype plugin depends on python3-magic, not python3-file-magic. As those packages conflict, it is probably best to not install the mimetype plugin, or possibly split it out to a subpackage so that those who really want it can go through the dependency pain. It would be even better if the conflict between the python packages was resolved, but I guess that will not be easy (given that the names are longstanding at this point).

(In reply to Dominik 'Rathann' Mierzejewski from comment #3)
> Created attachment 1759946 [details]
> patch to skip tests requiring data files to be present

That looks like something that should be reported upstream: https://github.com/nicfit/eyeD3/compare

> The attached patch allows using simply:
> %check
> py.test-%{python3_version}
> 
> for the %check section (i.e. without ignoring any tests).
> 
> It'd be better to include upstream test data and run all tests, though, if
> possible.

The Makefile downloads a tarball and extracts the test data from it, which does not seem great. It might be worth an upstream issue to improve the situation: https://github.com/nicfit/eyeD3/issues/new/choose

Comment 5 Tim Jackson 2021-05-10 15:11:03 UTC
Same on Fedora 34 with *any* invocation of eyeD3 (doesn't need "-L"). Appears to be the same issue; do you want a separate (F34) bug?

python3-eyed3-0.9.6-2.fc34.noarch
python3-file-magic-5.39-5.fc34.noarch

Actual results: (without passing a filename, but same if you pass one)
eyed3.plugins:ERROR: Bad plugin ('mimetype.py', '/usr/lib/python3.9/site-packages/eyed3/plugins')
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/__init__.py", line 56, in load
    mod = __import__(mod_name, globals=globals(), locals=locals())
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/mimetype.py", line 33, in <module>
    _python_magic = MagicTypes()
  File "/usr/lib/python3.9/site-packages/eyed3/plugins/mimetype.py", line 18, in __init__
    magic.Magic.__init__(self, mime=True, mime_encoding=False, keep_going=True)
TypeError: __init__() got an unexpected keyword argument 'mime'
No audio files found.

Comment 6 David King 2021-05-10 16:07:23 UTC
(In reply to Tim Jackson from comment #5)
> Same on Fedora 34 with *any* invocation of eyeD3 (doesn't need "-L").
> Appears to be the same issue; do you want a separate (F34) bug?

I can only reproduce by using the mimetype plugin (such as with the -L argument), not when calling eyeD3 without arguments, nor by specifying an audio file. As already mentioned, having python3-file-magic installed is not relevant.

Comment 7 Ben Cotton 2021-11-04 14:03:08 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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
Fedora 'version' of '33'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Ben Cotton 2021-11-04 14:32:20 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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
Fedora 'version' of '33'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2021-11-04 15:30:01 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
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
Fedora 'version' of '33'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Dominik 'Rathann' Mierzejewski 2021-11-05 10:55:55 UTC
Still an issue on F35 if python-file-magic is installed.

If I remove python3-file-magic and install python3-magic, there's no error.

However, there seems to be a bug in python3-file-magic package, because it seems to want to replace python3-magic:

$ dnf repoquery --obsoletes python3-file-magic
python3-magic < 5.40-9.fc35

And, there's a bug in python3-magic as it requires file-devel:
$ rpm -qR python3-magic | grep file
file-devel

What a mess...

Comment 11 Ben Cotton 2022-11-29 16:53:01 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 12 Ben Cotton 2022-12-13 15:18:47 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 13 Dominik 'Rathann' Mierzejewski 2022-12-19 20:40:42 UTC
Still reproducible on F37 with python3-eyed3-0.9.6-7.fc37.noarch .

Comment 14 Jakub Jankiewicz 2023-10-26 17:59:36 UTC
Still reproducible on Fedora 38.

Comment 15 Aoife Moloney 2023-11-23 00:04:55 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
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 '37'.

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 37 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 16 Dominik 'Rathann' Mierzejewski 2023-11-23 10:21:11 UTC
Still reproducible on Fedora rawhide.

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

Comment 18 Aoife Moloney 2025-04-25 10:00:50 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 19 Aoife Moloney 2025-05-16 07:37:56 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 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 20 Tim Jackson 2025-07-25 19:08:26 UTC
Still reproducible (using -L) on Fedora 42 with python3-eyed3-0.9.7-8.fc42.noarch


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