I am having trouble making a snap for a PyQt5 app.
My snapcraft.yaml is as follows:
name: full-sms
version: "1.0"
summary: Example python snap app
description: Example python snap app
confinement: devmode
grade: stable
base: core22
apps:
full-sms:
command: bin/main_app
environment:
PYTHONPATH: $SNAP/lib/python3.10/site-packages/src
extensions:
- kde-neon
plugs:
- home
- opengl
parts:
full-sms:
plugin: python
build-packages:
- python3
- python3-pyqt5
stage-packages:
- nvidia-cg-toolkit
- python3
- python3-pyqt5
source: .
I am using setuptools, my requirements.txt is as follows:
cachetools==5.3.1; python_version >= '3.7'
contourpy==1.1.1; python_version >= '3.8'
cycler==0.12.1; python_version >= '3.8'
dill==0.3.7
fonttools==4.43.1; python_version >= '3.8'
h5pickle==0.4.2
h5py==3.10.0; python_version >= '3.8'
importlib-metadata==6.8.0
importlib-resources==6.1.0
kiwisolver==1.4.5; python_version >= '3.7'
matplotlib==3.8.0
numpy==1.26.0; python_version < '3.13' and python_version >= '3.9'
packaging==23.2; python_version >= '3.7'
pandas==2.1.1; python_version >= '3.9'
patsy==0.5.3
pillow==10.0.1; python_version >= '3.8'
pyarrow==13.0.0
pyparsing==3.1.1; python_full_version >= '3.6.8'
pyqt5==5.15.10
pyqt5-qt5==5.15.2
pyqt5-sip==12.13.0; python_version >= '3.7'
pyqt5-stubs==5.15.6.0
pyqtgraph==0.13.3
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pytz==2023.3.post1
scipy==1.11.3; python_version < '3.13' and python_version >= '3.9'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
statsmodels==0.14.0
tzdata==2023.3; python_version >= '2'
zipp==3.17.0; python_version >= '3.8'
At the moment, the snap builds and installs but when I run it I get the following:
ImportError: /snap/full-sms/x28/lib/python3.10/site-packages/PyQt5/QtCore.abi3.so: undefined symbol: _ZdaPvm, version Qt_5
I am on Arch. Any assistance is much appreciated.