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

pre-commit hooks fail in devcontainer #45

Closed
sophokles73 opened this issue Oct 11, 2022 · 2 comments · Fixed by #50 or #51
Closed

pre-commit hooks fail in devcontainer #45

sophokles73 opened this issue Oct 11, 2022 · 2 comments · Fixed by #50 or #51
Assignees
Labels
bug Something isn't working

Comments

@sophokles73
Copy link

Execution of the pre-commit hooks fails in the devcontainer:

image

A search on the web found some indication that this is due to Python 3.10 on Debian based distros being incompatible: pre-commit/pre-commit#2299

@gkreyssing gkreyssing added the bug Something isn't working label Oct 12, 2022
@gkreyssing
Copy link
Member

Thanks for point out this issue. We will solve this.

@gkreyssing gkreyssing self-assigned this Oct 12, 2022
@sophokles73
Copy link
Author

sophokles73 commented Oct 13, 2022

I was able to solve the issue in my local workspace by making sure that the python3-virtualenv and python3-distutils packages of the underlying linux distribution are being installed in the dev container's base image and then adjusting the version of virtualenv in the requirements-dev.txt file to 20.13.* in order to keep using the version that has been installed using the apt tool during (base) image build time.

see pypa/virtualenv#2415 for reference

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