<#19318 Pants error when attempting to find Python...
# github-notifications
c
#19318 Pants error when attempting to find Python binary Issue created by jtilahun Describe the bug There was a failure in our CI system attributable to Pants encountering an error when attempting to find a Python binary. We have been unable to reproduce the error, and we have no insight into what could have caused this error. Log output below:
Copy code
ERROR:root:01:03:14.88 [INFO] Initialization options changed: reinitializing scheduler...
01:03:16.11 [INFO] Scheduler initialized.
01:03:16.79 [ERROR] 1 Exception encountered:
Engine traceback:
  in `run` goal
  in Prepare environment for running PEXes
  in Finding a `python` binary
  in Scheduling: Searching for `python3` on PATH=/home/buildbot/.local/bin/:/home/buildbot/tools/nvm/current:/home/buildbot/tools/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go:/usr/local/go/bin:/home/buildbot/go:/home/buildbot/go/bin
Exception: Failed to execute: Process {
    argv: [
        "./find_binary.sh",
        "python3",
    ],
    env: {
        "PATH": "/home/buildbot/.local/bin/:/home/buildbot/tools/nvm/current:/home/buildbot/tools/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go:/usr/local/go/bin:/home/buildbot/go:/home/buildbot/go/bin",
    },
    working_directory: None,
    input_digests: InputDigests {
        complete: DirectoryDigest {
            digest: Digest {
                hash: Fingerprint<1824155fc3b856540105ddc768220126b3d9e72531f69c45e3976178373328f3>,
                size_bytes: 91,
            },
            tree: "Some(..)",
        },
        nailgun: DirectoryDigest {
            digest: Digest {
                hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>,
                size_bytes: 0,
            },
            tree: "Some(..)",
        },
        input_files: DirectoryDigest {
            digest: Digest {
                hash: Fingerprint<1824155fc3b856540105ddc768220126b3d9e72531f69c45e3976178373328f3>,
                size_bytes: 91,
            },
            tree: "Some(..)",
        },
        immutable_inputs: {},
        use_nailgun: {},
    },
    output_files: {},
    output_directories: {},
    timeout: None,
    execution_slot_variable: None,
    concurrency_available: 0,
    description: "Searching for `python3` on PATH=/home/buildbot/.local/bin/:/home/buildbot/tools/nvm/current:/home/buildbot/tools/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go:/usr/local/go/bin:/home/buildbot/go:/home/buildbot/go/bin",
    level: Debug,
    append_only_caches: {},
    jdk_home: None,
    platform: Linux_x86_64,
    cache_scope: PerRestartSuccessful,
    execution_strategy: Local,
    remote_cache_speculation_delay: 0ns,
}
Error launching process after 1 retry for ETXTBSY. Final error was: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }
Pants version 2.15.1 OS Linux Additional info The log output from the failed build is provided above. pantsbuild/pants