Bug 2336930 - nox fails to build with Python 3.14: nox.command.CommandFailed: Program /usr/bin/python3 not found
Summary: nox fails to build with Python 3.14: nox.command.CommandFailed: Program /usr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nox
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondřej Kania
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-01-10 14:46 UTC by Karolina Surma
Modified: 2025-01-24 01:31 UTC (History)
6 users (show)

Fixed In Version: nox-2024.10.09-3.fc41 nox-2024.10.09-3.fc40
Clone Of:
Environment:
Last Closed: 2025-01-24 01:25:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-01-10 14:46:29 UTC
nox fails to build with Python 3.14.0a3.

___________________________ test_run_env_systemroot ____________________________

    @mock.patch("sys.platform", "win32")
    def test_run_env_systemroot():
        systemroot = os.environ.setdefault("SYSTEMROOT", "sigil")
    
>       result = nox.command.run(
            [PYTHON, "-c", 'import os; print(os.environ["SYSTEMROOT"])'], silent=True
        )

/builddir/build/BUILD/nox-2024.10.09-build/nox-2024.10.09/tests/test_command.py:164: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/builddir/build/BUILD/nox-2024.10.09-build/BUILDROOT/usr/lib/python3.14/site-packages/nox/command.py:98: in run
    cmd_path = which(os.fspath(cmd), paths)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

program = '/usr/bin/python3', paths = None

    def which(program: str | os.PathLike[str], paths: Sequence[str] | None) -> str:
        """Finds the full path to an executable."""
        if paths is not None:
            full_path = shutil.which(program, path=os.pathsep.join(paths))
            if full_path:
                return os.fspath(full_path)
    
        full_path = shutil.which(program)
        if full_path:
            return os.fspath(full_path)
    
        logger.error(f"Program {program} not found.")
>       raise CommandFailed(f"Program {program} not found")
E       nox.command.CommandFailed: Program /usr/bin/python3 not found

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/fedora-rawhide-x86_64/08480154-nox/

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

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/

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-01-10 14:47:40 UTC
Oh, actually nox fails with the same issue in Rawhide with python 3.13.1 too: https://koschei.fedoraproject.org/package/nox

Comment 2 Fedora Update System 2025-01-15 14:31:32 UTC
FEDORA-2025-f96b692677 (nox-2024.10.09-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f96b692677

Comment 3 Fedora Update System 2025-01-15 14:32:13 UTC
FEDORA-2025-f9f2a232f0 (nox-2024.10.09-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f9f2a232f0

Comment 4 Fedora Update System 2025-01-16 02:35:17 UTC
FEDORA-2025-f9f2a232f0 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f9f2a232f0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f9f2a232f0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-01-16 02:55:21 UTC
FEDORA-2025-f96b692677 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f96b692677`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f96b692677

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-01-24 01:25:09 UTC
FEDORA-2025-f9f2a232f0 (nox-2024.10.09-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2025-01-24 01:31:47 UTC
FEDORA-2025-f96b692677 (nox-2024.10.09-3.fc40) has been pushed to the Fedora 40 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.