-
Notifications
You must be signed in to change notification settings - Fork 73
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
Strict dependencies prevents charm from building #1456
Comments
Not sure if this a bug or not (haven't had time to thoroughly investigate), but thought you might want to know we're running into this I was imagining that we'd be able to enable strict dependencies for every charm |
Thanks for the report! This is a charmcraft bug in that it's not always grabbing the correct version of pip 🙃 You can replicate the failure by firing up a venv with pip 20.0.2 and running The Jammy build should still work though. When getting pip, we need to specify that we want charmcraft/charmcraft/charm_builder.py Line 240 in 2567c66
|
I'm hitting this as well - is there a workaround that a charm can use to sort this out temporarily? |
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2538.
|
It looks like charmcraft 2.7.1 doesn't upgrade pip, so I don't think this issue has been fixed |
The previous version wasn't installing pip if it was already in the venv Fixes #1456 CRAFT-2538
The previous version wasn't installing pip if it was already in the venv Fixes #1456 CRAFT-2538
The previous version wasn't installing pip if it was already in the venv Fixes #1456 CRAFT-2538
Bug Description
ModuleNotFoundError: No module named 'markupsafe'
when building charm withcharm-strict-dependencies: true
To Reproduce
Environment
Ubuntu 22.04
charmcraft.yaml
Relevant log output
charmcraft-20240103-154031.230848.log
The text was updated successfully, but these errors were encountered: