desbma / r128gain

Fast audio loudness scanner & tagger (ReplayGain v2 / R128)
GNU Lesser General Public License v2.1
170 stars 9 forks source link

AttributeError module 'collections' has no attribute 'Iterable' #36

Closed hboetes closed 2 years ago

hboetes commented 2 years ago

I just install r128gain on fedora-35, added all dependencies and ran into this error.

Failed to analyze file './some_file.flac': AttributeError module 'collections' has no attribute 'Iterable'

According to https://stackoverflow.com/questions/53978542/how-to-use-collections-abc-from-both-python-3-8-and-python-2-7/53978543#53978543 something has been deprecated somewhere.

desbma commented 2 years ago

This is a know issue in one of the dependencies, ffmpeg-python.

The smallest fix is to replace collections.Iterable by collections.abc.Iterable in /usr/lib/python3.10/site-packages/ffmpeg/_run.py.