-
Notifications
You must be signed in to change notification settings - Fork 455
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
snapcraft 8.0.2
+ python plugin classic core22 snap ModuleNotFoundError
#4615
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2550.
|
until canonical/snapcraft#4615 is resolved we need to pin snapcraft to 7.x/stable to avoid `ModuleNotFoundError: No module named 'cpc_sbom'` errors.
until canonical/snapcraft#4615 is resolved we need to pin snapcraft to 7.x/stable to avoid `ModuleNotFoundError: No module named 'cpc_sbom'` errors.
Thanks for the report. I have a strong suspicion that the cause of this bug is us dropping the PATH setting for classic snaps. Specifically, when I pack a classic snap with Snapcraft 7 I get this in ...
confinement: classic
environment:
LD_LIBRARY_PATH: ${SNAP_LIBRARY_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}:$SNAP/lib:$SNAP/usr/lib
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH ... while in Snapcraft 8 I get: ...
confinement: classic
# no environment setting at all @philroche does it work in Snapcraft 8 if you changed the app's |
Also I am currently unable to replicate the issue with snapcraft 8.0.3 |
No longer true. I still had a python virtual env active with these modules available. Apologies for confusion. |
Bug Description
We maintain a private snap where we build a classic snap
This is not an issue with using snapcraft
7.5.4
. To unblock ourselves we have pinned to7.5.4
.To Reproduce
Build a classic snap with core22 as a base using
plugin: python
. Try and run any of the snap apps.Environment
Snapcraft is being with default config and being run with
snapcraft --enable-manifest
snapcraft.yaml
Relevant log output
from REDACTED.generate import generate_REDACTED ModuleNotFoundError: No module named 'REDACTED'
Additional context
Apologies for the
REDACTED
references but this is a private project.The text was updated successfully, but these errors were encountered: