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.
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.