Comment 7 for bug 1876370

Revision history for this message
Alberto Donato (ack) wrote :

So, I found a seemingly related issue.

After adding the pyvenv.cfg to the snap, it works fine when installed on focal, but the same snap installed on a bionic container fails, again due to sys.path missing libraries.

This is what I get for sys.path from a `snap run --shell`:

bionic:

# env python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/lib/python3/dist-packages']

focal:

# env python3 -c 'import sys; print(sys.path)'
['', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/snap/canonical-rbac/x1/lib/python3.8/site-packages']