Relocation error when running QT5 app

so i tried snapping a pyqt5 app and right now all i am getting is this error after i snap the app and ran it localy

/snap/dupliseek/x10/usr/bin/python3: relocation error: /snap/dupliseek/x10/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: symbol _ZN20QPlatformIntegration11screenAddedEP15QPlatformScreenb version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference

if you require any information i will be happy to provide

1 Like

It is hard to tell what is going on from just that error message. Is there anything unusual about the way you built your snap? Can you post a copy of your snapcraft.yaml (either a link to a repository, or using paste.ubuntu.com should do)?

1 Like

i dont think im doing anything special but here it is https://paste.ubuntu.com/p/6nbVWhp5QB/

@jamesh I have posted a link in above here it is again https://paste.ubuntu.com/p/6nbVWhp5QB/

We have found the solution ourself. Solution was adding pyqt5 under staging packages
thanks to @jamesh for responding

1 Like

Based on your other thread, were you installing the snap with --classic? That might explain the error you saw, if your app was linking to a mix of Qt libraries from your snap and Qt libraries from the host system.

Your snapcraft.yaml just says devmode, which is effectively strict mode confinement without the AppArmor security checks being enforced. That is quite different to the environment a snap runs in when classic confinement is chosen.

It was in devmode we are now requesting for classic confinment after application started working