I tried to use base core22, core20, core18
If I run:
snap run tryuuid
ffmpeg: error while loading shared libraries: libslang.so.2: cannot open shared object file: No such file or directory
My snapcraft.yamll:
name: tryuuid
base: core22
version: '0.1'
summary: myapp
description: |
myapp
grade: devel
confinement: devmode
apps:
tryuuid:
command: bin/tryuuid.py
plugs:
- pulseaudio
- home
- audio-playback
parts:
tryuuid:
plugin: python
source: .
stage-packages: [ffmpeg]
part-try:
plugin: dump
source: .
organize:
tryuuid.py: bin/
this is the Python file tryuuid.py:
import subprocess
import os
rc = subprocess.run("ffmpeg -i /home/element/myfile.mp3 2>&1 | grep -A1 Duration:", shell=True, capture_output=True)
print(rc)
os.system('ffmpeg -version')