Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55332 - [python-eyed3] Does not find python-magic

Attached to Project: Community Packages
Opened by Stefan Muthers (smu) - Tuesday, 29 August 2017, 14:19 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 29 August 2017, 14:43 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

Today I found that eyeD3 (used via abcde) is no longer working. When ripping an CD using abcde I get the following error message at the end:

Traceback (most recent call last):
File "/usr/bin/eyeD3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3049, in <module>
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3033, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 658, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 972, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 858, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-magic' distribution was not found and is required by eyeD3
[ERROR] abcde: The following commands failed to run:
tagtrack-mp3-05: returned code 1: nice -n 10 eyeD3 --encoding utf16 -A 'Du' -a 'Du' -t -G 255 -n 05 -N 20 /home/XXX/abcde.wbJWo6yh30PtVWMSZxNmbVHkWAM-/track05.mp3

The error can also be reproduced by simply calling /usr/bin/eyeD3 without any arguments.

The following (relevant) packages are installed:

python2-eyed3 0.8.1-1
python-magic 5.29-2
python2-magic 5.29-2

Any ideas what is wrong here. Do you need any further informations?




This task depends upon

Comment by Doug Newgard (Scimmia) - Tuesday, 29 August 2017, 14:41 GMT
Comment by Stefan Muthers (smu) - Tuesday, 29 August 2017, 14:47 GMT
Yes, but python2-magic is installed, and an "import magic" works if I do it by hand in a python2 console.
Comment by Doug Newgard (Scimmia) - Tuesday, 29 August 2017, 15:04 GMT
python2-magic in Extra is a different module, not the one I linked to.
Comment by userwithuid (userwithuid) - Friday, 01 September 2017, 13:58 GMT
Some notes/shortcuts @ maintainer:

1. new python-magic dependency
* Introduced with commit: https://github.com/nicfit/eyeD3/commit/4969564bf8cc1dd59be77013d431dad6fc92b796
* AUR package exists for the correct one Doug linked: https://aur.archlinux.org/packages/python-magic-ahupp/
* looks like you will need to replace extra/python-magic (from "file" sources) with the ahupp one
* diffoscope apparently works with that one as well, see related arch mailing list post: https://lists.archlinux.org/pipermail/arch-general/2017-June/043735.html


2. "pathlib" is now explicit dep even for python3
* upstream commit: https://github.com/nicfit/eyeD3/commit/2ef7262c7b5b3b6a351c12b31b9f3fe906b831b2
* might want to do something like

sed -i -e '/- pathlib/d' requirements/requirements.yml
Comment by Jelle van der Waa (jelly) - Sunday, 03 September 2017, 15:23 GMT
Downgraded the package for now, will need to sort out the magic dep with the maintainer of python-magic.
Comment by Eli Schwartz (eschwartz) - Sunday, 03 September 2017, 16:52 GMT
What did they even do there -_-

Tell them to fix their gross NIH requirements nonsense and also to do proper "python_version"ed requirements when needed, like every other python module in the history of ever. :(

And why on earth do they hardcode their requirements versions. Across three separately implemented files. :(

Loading...