I have a python snap which I am trying to move from core18 to core20 /22. When changing base
to core22
and building the snap. The snap is not able to find the installed python packages in $SNAP/lib/python3.10/site-packages
. The hack is to set PYTHONPATH
environment variable explicitly under environment
section.
environment:
PYTHONPATH: $SNAP/lib/python3.10/site-packages
Is this expected for core22 snaps ? I did not had to do this for my python snaps with core18 base.