Hi all,
I’m pretty new to the snap thing. I’ve been trying to snap this https://gitlab.com/leinardi/gst. I got the snap to build, but when it runs I get
Traceback (most recent call last):
File “/snap/gtkstresstesting/x1/usr/bin/gst”, line 42, in
import gi
ModuleNotFoundError: No module named ‘gi’
And can’t figure out where to look for a solution.
Hi @psymole! It sounds like your application needs the python3-gi package as a runtime dependency. In that case, try adding a stage-packages section (where you put runtime deps) to your part. Something like this:
stage-packages:
- python3-gi
This should be at the same level as your build-packages in the same part.
Hi @hellsworth, I’ve tried that, but got the same error. I’ve also tried an override-build similar to what @popey has and that failed too. Now his is much more advance so I’ll take a deeper look to see if I can get it to work.
this snap continues to elude me witch is really bothersome as is such an easy build from source.
It keeps complaining that Python 3 dependencies are nowhere to be found. I’ll revisit this again later but if anyone has any ideas I’m all ears.