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 1893676

Summary: python-tables fails to build with Python 3.10
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-tablesAssignee: Thibault North <thibault>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, thibault, thrnciar, zbyszek
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-11-16 10:42:58 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: 1890881    

Description Tomáš Hrnčiar 2020-11-02 10:51:12 UTC
python-tables fails to build with Python 3.10.0a1.

======================================================================
FAIL: copy (tables.filters.Filters)
Doctest: tables.filters.Filters.copy
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.10/doctest.py", line 2204, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for tables.filters.Filters.copy
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/filters.py", line 416, in copy

----------------------------------------------------------------------
File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/filters.py", line 441, in tables.filters.Filters.copy
Failed example:
    filters1.copy(foobar=42)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: __init__() got an unexpected keyword argument 'foobar'
Got:
    Traceback (most recent call last):
      File "/usr/lib64/python3.10/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest tables.filters.Filters.copy[8]>", line 1, in <module>
        filters1.copy(foobar=42)
      File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/filters.py", line 450, in copy
        return self.__class__(**newargs)
    TypeError: Filters.__init__() got an unexpected keyword argument 'foobar'


======================================================================
FAIL: copy (tables.atom.Atom)
Doctest: tables.atom.Atom.copy
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.10/doctest.py", line 2204, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for tables.atom.Atom.copy
  File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/atom.py", line 559, in copy

----------------------------------------------------------------------
File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/atom.py", line 576, in tables.atom.Atom.copy
Failed example:
    atom1.copy(foobar=42)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: __init__() got an unexpected keyword argument 'foobar'
Got:
    Traceback (most recent call last):
      File "/usr/lib64/python3.10/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest tables.atom.Atom.copy[7]>", line 1, in <module>
        atom1.copy(foobar=42)
      File "/builddir/build/BUILDROOT/python-tables-3.5.2-10.fc34.x86_64/usr/lib64/python3.10/site-packages/tables/atom.py", line 584, in copy
        return self.__class__(**newargs)
    TypeError: _create_numeric_class.<locals>.__init__() got an unexpected keyword argument 'foobar'


----------------------------------------------------------------------
Ran 6385 tests in 201.512s

FAILED (failures=2, skipped=44)
error: Bad exit status from /var/tmp/rpm-tmp.Rv7J9v (%check)
    Bad exit status from /var/tmp/rpm-tmp.Rv7J9v (%check)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01741498-python-tables/

For all our attempts to build python-tables with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-tables/

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.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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 Zbigniew Jędrzejewski-Szmek 2020-11-16 10:28:19 UTC
I pushed a fix for this to dist-git. I didn't build because the fix is conditionalized on python version,
and will have an effect only with python3.10. Do I need to do something special to build it in the python3.10
copr?

Comment 2 Miro Hrončok 2020-11-16 10:33:47 UTC
Thanks. Nope, the build runs automatically (most of the time): https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-tables/

Comment 3 Zbigniew Jędrzejewski-Szmek 2020-11-16 10:38:21 UTC
Yeah, I see it's building already. The build passes locally, but let's see if copr likes it too.

Comment 4 Zbigniew Jędrzejewski-Szmek 2020-11-16 10:42:58 UTC
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/build/1770436/ was successful.