Bug 2093187

Summary: python-mrcfile fails to build with Python 3.11: AttributeError: property 'data' of 'Bzip2MrcFile' object has no setter
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-mrcfileAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED RAWHIDE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominik, mhroncok, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-mrcfile-1.3.0-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-10 13:22:06 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: 2016048    

Description Tomáš Hrnčiar 2022-06-03 08:07:07 UTC
python-mrcfile fails to build with Python 3.11.0b3.

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_bzip2mrcfile.Bzip2MrcFileTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'Bzip2MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'Bzip2MrcFile' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_bzip2mrcfile.Bzip2MrcFileTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'Bzip2MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'Bzip2MrcFile' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_bzip2mrcfile.Bzip2MrcFileTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'Bzip2MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'Bzip2MrcFile' object has no setter"

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_gzipmrcfile.GzipMrcFileTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'GzipMrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'GzipMrcFile' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_gzipmrcfile.GzipMrcFileTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'GzipMrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'GzipMrcFile' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_gzipmrcfile.GzipMrcFileTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'GzipMrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'GzipMrcFile' object has no setter"

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_mrcobject.MrcObjectTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'MrcObject' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'MrcObject' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_mrcobject.MrcObjectTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'MrcObject' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'MrcObject' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_mrcobject.MrcObjectTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'MrcObject' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'MrcObject' object has no setter"

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_mrcinterpreter.MrcInterpreterTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'MrcInterpreter' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'MrcInterpreter' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_mrcinterpreter.MrcInterpreterTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'MrcInterpreter' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'MrcInterpreter' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_mrcinterpreter.MrcInterpreterTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'MrcInterpreter' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'MrcInterpreter' object has no setter"

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_mrcfile.MrcFileTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'MrcFile' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_mrcfile.MrcFileTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'MrcFile' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_mrcfile.MrcFileTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'MrcFile' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'MrcFile' object has no setter"

======================================================================
FAIL: test_setting_data_attribute_raises_exception (tests.test_mrcmemmap.MrcMemmapTest.test_setting_data_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'data' of 'MrcMemmap' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 102, in test_setting_data_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'data' of 'MrcMemmap' object has no setter"

======================================================================
FAIL: test_setting_extended_header_attribute_raises_exception (tests.test_mrcmemmap.MrcMemmapTest.test_setting_extended_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'extended_header' of 'MrcMemmap' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 98, in test_setting_extended_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'extended_header' of 'MrcMemmap' object has no setter"

======================================================================
FAIL: test_setting_header_attribute_raises_exception (tests.test_mrcmemmap.MrcMemmapTest.test_setting_header_attribute_raises_exception)
----------------------------------------------------------------------
AttributeError: property 'header' of 'MrcMemmap' object has no setter

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/mrcfile-1.3.0/tests/test_mrcobject.py", line 94, in test_setting_header_attribute_raises_exception
    with self.assertRaisesRegex(AttributeError, "can't set attribute"):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "can't set attribute" does not match "property 'header' of 'MrcMemmap' object has no setter"

----------------------------------------------------------------------
Ran 710 tests in 13.343s

FAILED (failures=18)

https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04491802-python-mrcfile/

For all our attempts to build python-mrcfile with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-mrcfile/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Dominik 'Rathann' Mierzejewski 2022-06-10 13:22:06 UTC
Fix tested in mock and pushed to rawhide but not built. I'll let the mass rebuild take care of it.