At last, I managed to create the snap package, but when trying to run the application after install it, it doesn’t work. I get the following error:
“ImportError: No module named twisted.internet ”
This library (Twisted) is inside the code in their own folder, I dont´t need to add it to requirements.txt. But the project can`t locate it.
How I can reference where is located my local libraries in the snapcraft.yaml file?
I was checking that post, but I couldn’t understand how to do it.
I have a config file (/snap/exelearning/x1/bin/config), but I notice that I can’t place in that location because is an onlyreadable folder.
I need to link or hook mi config file to another location where I can write (i.e. in root home folder [/root]), but i don’t know to to do thath in my snapcraft.yaml.
well, the post i referenced discusses where you have writeble dirs you can access from a snap via environment variables (SNAP_DATA and SNAP_USER_DATA) …
there is a follow up one that discusses this more in detail: