Python snap - snap not building

You might either need to use the shared-memory interface:

https://snapcraft.io/blog/private-shared-memory-support-for-snaps

Or you could use snapcraft-preload: