Bug 2366470 - patool fails to build with Python 3.14: Codec Load Error: /usr/bin/7z.so : errno=25 : Inappropriate ioctl for device
Summary: patool fails to build with Python 3.14: Codec Load Error: /usr/bin/7z.so : er...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: patool
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371768 (view as bug list)
Depends On: 2373874
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall F44FailsToInstall, RAWHIDEFailsToInstall 2371854 2372004
TreeView+ depends on / blocked
 
Reported: 2025-05-15 10:54 UTC by Karolina Surma
Modified: 2025-08-25 13:11 UTC (History)
4 users (show)

Fixed In Version: patool-4.0.0-6.fc44 patool-4.0.0-6.fc43
Clone Of:
Environment:
Last Closed: 2025-08-25 13:11:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources patool pull-request 2 0 None None None 2025-08-25 11:03:45 UTC

Description Karolina Surma 2025-05-15 10:54:04 UTC
patool fails to build with Python 3.14.0b1.

Example failure:

____________________ TestPyzipPasswordfile.test_py_zipfile _____________________

self = <tests.archives.test_pyzipfile.TestPyzipPasswordfile testMethod=test_py_zipfile>

    def test_py_zipfile(self):
        """Run archive commands with ZIP and CBZ archive."""
>       self.archive_commands(self.filename + '.zip')

tests/archives/test_pyzipfile.py:28: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/archives/__init__.py:69: in archive_commands
    self.archive_create(filename, **kwargs)
tests/archives/__init__.py:184: in archive_create
    self._archive_create(
tests/archives/__init__.py:203: in _archive_create
    patoolib.create_archive(
patoolib/__init__.py:1295: in create_archive
    res = _create_archive(
patoolib/__init__.py:917: in _create_archive
    run_archive_cmdlist(cmdlist, verbosity=verbosity)
patoolib/__init__.py:785: in run_archive_cmdlist
    return util.run_checked(cmdlist, verbosity=verbosity, **runkwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cmd = ['/usr/bin/7z', 'a', '-y', '-pthereisnotry', '-tzip', '--', ...]
ret_ok = (0,), kwargs = {'verbosity': 2}, retcode = 2
msg = "Command `['/usr/bin/7z', 'a', '-y', '-pthereisnotry', '-tzip', '--', '/builddir/build/BUILD/patool-4.0.0-build/patool-4.0.0/tests/Unpack_v4q_sgj5/p.zip', 't']' returned non-zero exit status 2"

    def run_checked(cmd: Sequence[str], ret_ok: Sequence[int] = (0,), **kwargs) -> int:
        """Run command and raise PatoolError on error."""
        retcode = run(cmd, **kwargs)
        if retcode not in ret_ok:
            msg = f"Command `{cmd}' returned non-zero exit status {retcode}"
>           raise PatoolError(msg)
E           patoolib.util.PatoolError: Command `['/usr/bin/7z', 'a', '-y', '-pthereisnotry', '-tzip', '--', '/builddir/build/BUILD/patool-4.0.0-build/patool-4.0.0/tests/Unpack_v4q_sgj5/p.zip', 't']' returned non-zero exit status 2

patoolib/util.py:88: PatoolError
----------------------------- Captured stdout call -----------------------------
t/
t/t.txt
t/
t/t.txt
t/
t/t.txt
t/
t/t.txt
t/
t/t.txt
t/
t/t.txt

7-Zip 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29
 64-bit locale=C.UTF-8 Threads:2 OPEN_MAX:10240


Codec Load Error: /usr/bin/7z.so : errno=25 : Inappropriate ioctl for device

FAILED tests/archives/test_7z.py::Test7z::test_7z - patoolib.util.PatoolError...
FAILED tests/archives/test_7z.py::Test7z::test_7z_file - patoolib.util.Patool...
FAILED tests/archives/test_7z.py::Test7zPassword::test_7z - patoolib.util.Pat...
FAILED tests/archives/test_7z.py::Test7zPassword::test_7z_file - patoolib.uti...
FAILED tests/archives/test_genisoimage.py::TestGenisoimage::test_genisoimage
FAILED tests/archives/test_pyzipfile.py::TestPyzipPasswordfile::test_py_zipfile

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09024356-patool/

For all our attempts to build patool with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/patool/

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

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Karolina Surma 2025-06-11 15:54:58 UTC
*** Bug 2371768 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2025-06-20 19:52:50 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 3 Fedora Fails To Install 2025-07-15 08:36:17 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 4 Fedora Fails To Install 2025-08-12 12:19:03 UTC
This package has been orphaned.

You can pick it up at https://src.fedoraproject.org/rpms/patool by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution.

Comment 5 Fedora Admin user for bugzilla script actions 2025-08-12 13:25:57 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Fedora Admin user for bugzilla script actions 2025-08-15 01:08:26 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 7 Sandro 2025-08-15 07:25:18 UTC
This a regression in 7zip (see bug 2373874). I patched patool so it no longer uses the full path when calling executables:

https://src.fedoraproject.org/rpms/patool/pull-request/2

This just demonstrates the issue. It's 7zip that needs fixing.

Comment 8 Miro Hrončok 2025-08-25 11:03:45 UTC
Let's merge https://src.fedoraproject.org/rpms/patool/pull-request/2 for now?

Comment 9 Fedora Update System 2025-08-25 13:08:03 UTC
FEDORA-2025-db01e2a84e (patool-4.0.0-6.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-db01e2a84e

Comment 10 Fedora Update System 2025-08-25 13:08:56 UTC
FEDORA-2025-35777c61b4 (patool-4.0.0-6.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-35777c61b4

Comment 11 Fedora Update System 2025-08-25 13:11:25 UTC
FEDORA-2025-db01e2a84e (patool-4.0.0-6.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2025-08-25 13:11:36 UTC
FEDORA-2025-35777c61b4 (patool-4.0.0-6.fc43) has been pushed to the Fedora 43 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.