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

Dockerfile installs Python 3.6 but uses 3.8 #406

Open
fcami opened this issue Jun 10, 2022 · 2 comments
Open

Dockerfile installs Python 3.6 but uses 3.8 #406

fcami opened this issue Jun 10, 2022 · 2 comments

Comments

@fcami
Copy link
Contributor

fcami commented Jun 10, 2022

Tentative fix: #404

However, this fails later, failing to find robotframework-openshift==1.0.0:

Collecting robotframework-OpenShiftCLI==1.0.1
  Downloading robotframework-OpenShiftCLI-1.0.1.tar.gz (14 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
ERROR: Could not find a version that satisfies the requirement robotframework-openshift==1.0.0 (from ods-ci) (from versions: none)
ERROR: No matching distribution found for robotframework-openshift==1.0.0

I don't really understand the problem, this is latest available release.
Is that Dockerfile even used?

@bdattoma
Copy link
Contributor

conversations started at #404 . More investigation needed to reproduce the reported issues

@fcami fcami changed the title Dockerfile installs Python 3.8 but uses 3.8 Dockerfile installs Python 3.6 but uses 3.8 Jun 16, 2022
@fcami
Copy link
Contributor Author

fcami commented Jun 16, 2022

The original description was a bit off. Rewriting it:

Installing any RPM-packaged Python application will pull Python 3.6 on RHEL8/Streams8 because 3.6 is the system default.
This, in turn, will break building the ods-ci container because ods-ci has been using Python 3.7 features since commit ff7ac1f.

fcami added a commit to fcami/ods-ci that referenced this issue Jun 16, 2022
Installing any RPM-packaged Python application will pull Python 3.6
on RHEL8/Streams8 because 3.6 is the system default.
This, in turn, will break building the ods-ci container because ods-ci
has been using Python 3.7 features since ff7ac1f.

virtualenv ( https://virtualenv.pypa.io/en/latest/ ) should be used
instead of the venv module to force Python's version to 3.8 instead
of the RHEL8/Streams8 default 3.6.

Fixes: red-hat-data-services#406
Signed-off-by: François Cami <[email protected]>
This was referenced Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants