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

python: Collected python version in bad format #754

Open
Jongy opened this issue Mar 30, 2023 · 1 comment
Open

python: Collected python version in bad format #754

Jongy opened this issue Mar 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working runtime/python

Comments

@Jongy
Copy link
Contributor

Jongy commented Mar 30, 2023

We run python -V and get a result like 'Python 3.7.0 (default, Sep 10 2019, 18:15:34) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]\n' which is unexpected - we try to keep the format Python x.y.z. (this build is Python 3.7.0 on CentOS 7).

I suppose we could catch this case and strip away the other parts, so we remain with Python 3.7.0. Be very defensive to avoid incorrectly parsing versions.

@Jongy Jongy added bug Something isn't working runtime/python labels Mar 30, 2023
@pfilipko1 pfilipko1 self-assigned this Apr 6, 2023
@pfilipko1
Copy link
Contributor

pfilipko1 commented Apr 18, 2023

This extended output is usually produced by something like

 python3 -V -V

or

python3 --version --version

or a combination of those, which would indicate that the version argument flag is being passed twice somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime/python
Projects
None yet
Development

No branches or pull requests

2 participants