Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1792061 - python-mutagen fails to build with Python 3.9: imports abc from collections
Summary: python-mutagen fails to build with Python 3.9: imports abc from collections
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-mutagen
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michele Baldessari
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-16 23:14 UTC by Miro Hrončok
Modified: 2020-01-21 10:04 UTC (History)
5 users (show)

Fixed In Version: python-mutagen-1.43.0-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-21 07:03:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-16 23:14:30 UTC
python-mutagen fails to build with Python 3.9.0a2.

+ /usr/bin/python3 setup.py test
running test
Traceback (most recent call last):
  File "/builddir/build/BUILD/mutagen-1.42.0/setup.py", line 254, in <module>
    setup(cmdclass=cmd_classes,
  File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/builddir/build/BUILD/mutagen-1.42.0/setup.py", line 161, in run
    import tests
  File "/builddir/build/BUILD/mutagen-1.42.0/tests/__init__.py", line 16, in <module>
    from mutagen._senf import text2fsn, fsn2text, path2fsn, mkstemp, fsnative
  File "/builddir/build/BUILD/mutagen-1.42.0/mutagen/_senf/__init__.py", line 32, in <module>
    from ._stdlib import sep, pathsep, curdir, pardir, altsep, extsep, devnull, \
  File "/builddir/build/BUILD/mutagen-1.42.0/mutagen/_senf/_stdlib.py", line 28, in <module>
    from ._environ import environ
  File "/builddir/build/BUILD/mutagen-1.42.0/mutagen/_senf/_environ.py", line 133, in <module>
    class Environ(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'


See https://docs.python.org/3.9/whatsnew/3.9.html#removed

"The abstract base classes in collections.abc no longer are exposed in the regular collections module. This will help create a clearer distinction between the concrete classes and the abstract base classes."


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01149179-python-mutagen/

For all our attempts to build python-mutagen with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-mutagen/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Hugo van Kemenade 2020-01-20 16:00:04 UTC
This was fixed in Jan 2019 (https://github.com/quodlibet/mutagen/pull/371) and released in mutagen 1.43.0 (Nov 2019,  https://github.com/quodlibet/mutagen/releases/tag/release-1.43.0).

Please try mutagen 1.43.0 instead of 1.42.0.

Comment 2 Miro Hrončok 2020-01-20 16:10:01 UTC
We build packages from Fedora. Michele, could you please update mutagen?

Comment 3 Michele Baldessari 2020-01-21 07:03:38 UTC
Thanks Miro and Hugo. Done now.

Comment 4 Miro Hrončok 2020-01-21 10:04:07 UTC
Thank You for the quick fix.


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