Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tap2junit fails to install on rhel8-x64 machines #3306

Closed
richardlau opened this issue Apr 12, 2023 · 0 comments · Fixed by #3313
Closed

tap2junit fails to install on rhel8-x64 machines #3306

richardlau opened this issue Apr 12, 2023 · 0 comments · Fixed by #3313

Comments

@richardlau
Copy link
Member

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
$
richardlau added a commit that referenced this issue Apr 19, 2023
`tap2junit` 0.1.6 requires Python >=3.7.

Use the installed `python3` (currently Python 3.9) rather than
`/usr/libexec/platform-python` which is Python 3.6.8.

Fixes: #3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant