Bug 2280571 - python-zlib-ng fails to build with Python 3.13: OSError: [Errno 9] write() on read-only GzipNGFile object
Summary: python-zlib-ng fails to build with Python 3.13: OSError: [Errno 9] write() on...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-zlib-ng
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-05-15 07:55 UTC by Karolina Surma
Modified: 2024-05-15 20:35 UTC (History)
4 users (show)

Fixed In Version: python-zlib-ng-0.4.3-2.fc41
Clone Of:
Environment:
Last Closed: 2024-05-15 20:35:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pycompression python-zlib-ng issues 44 0 None open Test failures on Python 3.13 due to read-only Gzip(NG)File 2024-05-15 15:35:59 UTC

Description Karolina Surma 2024-05-15 07:55:01 UTC
python-zlib-ng fails to build with Python 3.13.0b1.

55 tests fail:

____________________ test_compress_infile_out_file_no_name _____________________

tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_compress_infile_out_file_4')
capsysbinary = <_pytest.capture.CaptureFixture object at 0x7f26cf229f60>

    def test_compress_infile_out_file_no_name(tmp_path, capsysbinary):
        test = tmp_path / "test"
        test.write_bytes(DATA)
        out_file = tmp_path / "compressed.gz"
        sys.argv = ['', '-n', '-o', str(out_file), str(test)]
>       gzip_ng.main()

tests/test_gzip_ng.py:247: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-zlib-ng-0.4.2-1.fc41.x86_64/usr/lib64/python3.13/site-packages/zlib_ng/gzip_ng.py:332: in main
    out_file.write(block)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <gzip_ng on 0x7f26d13b0670>, data = b'This is a simple test with gzip_ng'

    def write(self, data):
        self._check_not_closed()
        if self.mode != WRITE:
            import errno
>           raise OSError(errno.EBADF, "write() on read-only GzipNGFile object")
E           OSError: [Errno 9] write() on read-only GzipNGFile object

../../BUILDROOT/python-zlib-ng-0.4.2-1.fc41.x86_64/usr/lib64/python3.13/site-packages/zlib_ng/gzip_ng.py:158: OSError 


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07443692-python-zlib-ng/

For all our attempts to build python-zlib-ng with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-zlib-ng/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Fedora Update System 2024-05-15 19:41:39 UTC
FEDORA-2024-d1c88358dc (python-zlib-ng-0.4.3-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1c88358dc

Comment 2 Fedora Update System 2024-05-15 20:35:24 UTC
FEDORA-2024-d1c88358dc (python-zlib-ng-0.4.3-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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