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

fix: pre-commit config: bump pycln to working version after PyYAML v5.X dependencies stopped working #154

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TaoK
Copy link

@TaoK TaoK commented Jan 29, 2024

The template's "devcontainer" wasn't working, with an obscure error about "AttributeError: cython_sources" during a pip install, in a "Called Process" - see #151.

After some investigation it turned out that this was happening during the devContainer's onCreateCommand, which runs pre-commit install-hooks.

Searching for other projects with the same error showed that one typical solution is to upgrade to PyYAML 6.X, but as the version of PyYAML in this particular pip install is actually driven by the from pycln==1.2.5 constraint, that's what needs to be bumped for this template to start working again.

Fixes #151.

@TaoK TaoK changed the title pre-commit config: bump pycln to working version after PyYAML v5.X dependencies stopped working fix: pre-commit config: bump pycln to working version after PyYAML v5.X dependencies stopped working Jan 29, 2024
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 this pull request may close these issues.

Codespace build fails with "AttributeError: cython_sources"
2 participants