Skip to content

tap2junit fails to install on rhel8-x64 machines #3306

Closed
@richardlau

Description

@richardlau

Ansible playbook fails to install tap2junit on the rhel8-x64 machines (I've tried all three IBM hosted ones and the Digital Ocean machine).

TASK [jenkins-worker : install tap2junit] ***********************************************************************************************************************************************************************
fatal: [test-ibm-rhel8-x64-1]: FAILED! => {"changed": false, "cmd": ["/usr/libexec/platform-python", "-m", "pip.__main__", "install", "tap2junit==0.1.6"], "msg": "stdout: Collecting tap2junit==0.1.6\n\n:stderr: WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.\n  Could not find a version that satisfies the requirement tap2junit==0.1.6 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5)\nNo matching distribution found for tap2junit==0.1.6\n"}

PLAY RECAP ******************************************************************************************************************************************************************************************************
test-ibm-rhel8-x64-1       : ok=41   changed=3    unreachable=0    failed=1    skipped=73   rescued=0    ignored=0

I suspect the problem is that /usr/libexec/platform-python is being used, which is Python 3.6 on RHEL 8. We do have Python 3.9 installed on those machines:

$ ssh test-digitalocean-rhel8-x64-1 python3 --version
Python 3.9.13
$ ssh test-digitalocean-rhel8-x64-1 /usr/libexec/platform-python --version
Python 3.6.8
$

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions