Help snapping GTKStresstesting

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.

The current version of the snapcraft YAML is here–> https://gitlab.com/psymole/gst/-/blob/release/snap/snapcraft.yaml.

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

I took a look at snapping this the other day.

This is as far as I got.

https://paste.ubuntu.com/p/6jmFC8FRRM/

Hope it’s helpful.

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.

Thanks!!!

Hi all,

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.

Here are the errors of what I think are the more successful build. https://paste.ubuntu.com/p/9vVzR84sdj/

snapcraft yaml https://paste.ubuntu.com/p/b3RyxSRYpQ/

this seems to be clearly beyond my current level.