Bug 1792931

Summary: python-blist fails to build with Python 3.9: AttributeError: module 'blist' has no attribute 'sortedlist'
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-blistAssignee: Michel Lind <michel>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, igor.raits, mhroncok, michel, tir.karthi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-07 22:01:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1785415    

Description Miro Hrončok 2020-01-20 12:15:57 UTC
python-blist fails to build with Python 3.9.0a2.

Traceback (most recent call last):
  File "/builddir/build/BUILD/blist-1.3.6/setup.py", line 24, in <module>
    setup(name='blist',
  File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  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 "/usr/lib/python3.9/site-packages/setuptools/command/test.py", line 237, in run
    self.run_tests()
  File "/usr/lib/python3.9/site-packages/setuptools/command/test.py", line 255, in run_tests
    test = unittest.main(
  File "/usr/lib64/python3.9/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python3.9/unittest/main.py", line 147, in parseArgs
    self.createTests()
  File "/usr/lib64/python3.9/unittest/main.py", line 158, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames,
  File "/usr/lib64/python3.9/unittest/loader.py", line 220, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python3.9/unittest/loader.py", line 220, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/blist-1.3.6/test_blist.py", line 43, in <module>
    from blist.test import test_support, list_tests, sortedlist_tests, btuple_tests
  File "/builddir/build/BUILD/blist-1.3.6/blist/test/sortedlist_tests.py", line 593, in <module>
    class SortedListTest(StrongSortedBase, SortedListMixin):
  File "/builddir/build/BUILD/blist-1.3.6/blist/test/sortedlist_tests.py", line 594, in SortedListTest
    type2test = blist.sortedlist
AttributeError: module 'blist' has no attribute 'sortedlist'

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

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

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 Karthikeyan Singaravelan 2020-01-23 05:08:30 UTC
It also seems to have ABC imported from collections directly as reported in https://github.com/DanielStutzbach/blist/issues/79

Comment 2 Ben Cotton 2020-02-11 17:27:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 3 Michel Lind 2020-04-07 21:22:33 UTC
ack, working on it

Comment 4 Michel Lind 2020-04-07 22:01:53 UTC
Just tested with mock, it works fine with python3-3.9.0~a5-1.fc33.x86_64

Comment 5 Miro Hrončok 2020-04-07 23:09:40 UTC
Confirmed. Thanks.