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!!!