Bug 480542

Summary: Appimage looking for PyQt5.QtTest in the wrong place
Product: [Applications] krita Reporter: Trevor Noble <technicalgraphics>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, saranvale
Priority: NOR Keywords: triaged
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Trevor Noble 2024-01-30 15:05:28 UTC
There appears to be a bug in all appimage versions since 5.1.4. It is also projecting forward in all the nightly builds. The bug does not occur however in the current Flatpak 5.2.2 version

from PyQt5.QtTest import QTest

QTest.qWait(2000)
print('I was waiting for two seconds')

returns the following: 
ImportError: /lib/x86_64-linux-gnu/libQt5Test.so.5: undefined symbol: _Z32qt_register_signal_spy_callbacksRK21QSignalSpyCallbackSet, version Qt_5

-------------
System:    Kernel: 5.4.0-167-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: ASUSTeK model: PRIME A320M-K v: Rev X.0x serial: <filter> UEFI: American Megatrends v: 5603 
           date: 10/14/2020 
Memory:    RAM: total: 15.62 GiB used: 3.27 GiB (21.0%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 114985 
           Speed: 2212 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 2185 2: 2208 3: 2185 4: 2196 5: 2200 
           6: 2196 7: 2196 8: 2195 9: 2219 10: 2195 11: 2195 12: 2196 13: 2198 14: 2196 15: 2199 16: 2196 
Graphics:  Device-1: NVIDIA GP107 [GeForce GTX 1050] vendor: ASUSTeK driver: nvidia v: 535.154.05 bus ID: 07:00.0 
           chip ID: 10de:1c81 
           Display: x11 server: X.Org 1.20.13 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa 
           resolution: 2560x1440~60Hz
Comment 1 Trevor Noble 2024-01-30 15:07:40 UTC
My old login details point to a defunct email address which I no longer have access to.
Comment 2 Halla Rempt 2024-02-07 09:52:33 UTC
I cannot reproduce this, I'm afraid. Running the script in krita's scripter or running it in a system python both work for me.
Comment 3 Dynline 2024-05-16 20:21:08 UTC
I have encountered this as well on linux mint
If I try the script my error is a bit different:

**********************
ImportError: libQt5Test.so.5: cannot open shared object file: No such file or directory

In file: <string>
In function: <module> at line: 1. Line with error:

**********************
on my pc it seems even appimages before 5.1.4 have the same problem.
I have tried the latest nightly, the stable from the Krita website, appimage 5.1.4 and 5.1.3, 5.1.2 and it happens in all of those.
Comment 4 Halla Rempt 2024-07-27 09:36:54 UTC
I've tried again, with 5.1.5 I could reproduce something like this:

**********************
ImportError: /tmp/.mount_krita-Ayc0zk/usr/bin/../lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /lib/x86_64-linux-gnu/libQt5Test.so.5)

In file: <string>
In function: <module> at line: 1. Line with error:

**********************

But no longer with 5.2.3, so I am closing this bug as fixed, since the way we add Python to the appimage has been changed.