Core22->Core24 default configure hook failing

Hi,

Has anyone had this issue when updating from Core22 to Core24 base for a snap that a previously working configure hook starts to complain it can’t import modules from its own code base?

It fails at the from X import Y line at the beginning of the hook with a ModuleNotFoundError. when attempting to install.

The only thing changed in the snapcraft.yaml file was the base and the change to the [platforms] section.

Thanks

With change from core22 to core24, the python version got updated from python 3.11 to python 3.12. So, the PYTHONPATH should be something like /lib/python3.12 instead of /lib/pytho3.11. So, I think you should check that out first.

Thanks, that didn’t seem to change anything but I have now specified:

PYTHONHOME: $SNAP

and that gets me past that issue. Then I ended up with the same issue detailed here: Upgrading classic snap to core24 using snapcraft 8.3 causes python 3.12 errors at runtime - #2 by nuccitheboss so it does seem to be more of an issue than just my config file.

1 Like