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 3.x upgrade has broken yum on centos7-devtoolset7 #28

Closed
thegecko opened this issue Dec 10, 2022 · 2 comments · Fixed by #29
Closed

Python 3.x upgrade has broken yum on centos7-devtoolset7 #28

thegecko opened this issue Dec 10, 2022 · 2 comments · Fixed by #29

Comments

@thegecko
Copy link
Contributor

thegecko commented Dec 10, 2022

Since the python 3.x upgrade, yum seems to be broken on the centos7-devtoolset7 image.

Using the following dockerfile:

FROM ghcr.io/prebuild/centos7-devtoolset7:2.1.0
USER 0

RUN yum install -y libudev-devel

USER node

Yields errors with yum accessing the correct python version:

#6 2.378   File "/usr/libexec/urlgrabber-ext-down", line 28
#6 2.378     except OSError, e:
#6 2.378                   ^
#6 2.378 SyntaxError: invalid syntax

I'll try some sed magic...

@vweevers
Copy link
Member

I thought I handled that with:

sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' /usr/bin/yum && \

But I don't remember the extent to which I tested that.

@thegecko
Copy link
Contributor Author

But I don't remember the extent to which I tested that.

Seems it needs to be replaced in a different script, too.

#29 fixes the issue

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