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 1789618 - python-orderedset fails to build with Python 3.9
Summary: python-orderedset fails to build with Python 3.9
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-orderedset
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-09 22:23 UTC by Charalampos Stratakis
Modified: 2020-01-14 00:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-10 23:41:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2020-01-09 22:23:06 UTC
python-orderedset fails to build with Python 3.9.0a2.

The error:

test_orderedset (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test_orderedset (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_orderedset
Traceback (most recent call last):
  File "/usr/lib64/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/orderedset-2.0.1/tests/test_orderedset.py", line 21, in <module>
    from orderedset import *
  File "/builddir/build/BUILD/orderedset-2.0.1/lib/orderedset/__init__.py", line 5, in <module>
    from ._orderedset import OrderedSet
  File "lib/orderedset/_orderedset.pyx", line 3, in init orderedset._orderedset
    from collections import Set, MutableSet, Iterable
ImportError: cannot import name Set

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

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

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, but the initial bootstrapping has already started.
A build failure this early in the bootstrap sequence blocks us very much.

Comment 1 Charalampos Stratakis 2020-01-09 22:23:35 UTC
The fix has been submitted upstream but not merged yet:
https://github.com/simonpercivall/orderedset/pull/26/files

Comment 2 Jerry James 2020-01-10 23:41:48 UTC
I applied the fix noted in comment 1, as well as a few small cleanups and built in Rawhide.

Comment 3 Charalampos Stratakis 2020-01-14 00:02:56 UTC
Thanks for the fix!


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