activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

Different versions of Qt on Arch (Cannot mix incompatible Qt library (6.5.3) with this library (6.7.2))

Open losogudok opened this issue 1 year ago • 3 comments

  • [x] I am on the latest ActivityWatch version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: Arch Linux (6.9.10-arch1-1) DE: Plasma 6.1.3 Qt: 6.7.2-1
  • ActivityWatch version: v0.13.1

Describe the bug

After installation via AUR or AppImage application doesnt open up (Dashboard). I believe because of different vesions of Qt library (system version 6.7.2-1, app version 6.5.3)

To Reproduce

  1. Update packages
  2. Install app via AUR or AppImage
  3. Run app

Expected behavior

App should open (Dashboard)

Documentation

/.cache/activitywatch/log

2024-07-22 16:15:56 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2024-07-22 16:15:56 [WARNING]: Found matching file but was not executable: /tmp/.mount_activi9R8hjy/aw-qt.desktop  (aw_qt.manager:64)
2024-07-22 16:15:56 [INFO ]: Found 8 bundled modules  (aw_qt.manager:85)
2024-07-22 16:15:56 [INFO ]: Found 0 system modules  (aw_qt.manager:119)
2024-07-22 16:15:56 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2024-07-22 16:15:56 [INFO ]: Starting module aw-watcher-afk  (aw_qt.manager:148)
2024-07-22 16:15:56 [INFO ]: Starting module aw-watcher-window  (aw_qt.manager:148)
2024-07-22 16:15:56 [INFO ]: Creating trayicon...  (aw_qt.trayicon:208)
2024-07-22 16:15:57 [INFO ]: Initialized aw-qt and trayicon successfully  (aw_qt.trayicon:264)
2024-07-22 16:15:59 [WARNING]: Tried to stop module aw-watcher-window, but it wasn't running  (aw_qt.manager:185)
2024-07-22 16:15:59 [WARNING]: Tried to stop module aw-server, but it wasn't running  (aw_qt.manager:185)
2024-07-22 16:15:59 [WARNING]: Tried to stop module aw-watcher-afk, but it wasn't running  (aw_qt.manager:185)

Journald

22.07.2024 16:40	kde-open	Cannot mix incompatible Qt library (6.5.3) with this library (6.7.2)
22.07.2024 16:40	systemd-coredump	Process 78276 (kde-open) of user 1000 terminated abnormally with signal 6/ABRT, processing...
22.07.2024 16:40	systemd	Started Process Core Dump (PID 78280/UID 0).
22.07.2024 16:40	systemd	Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
22.07.2024 16:40	systemd-coredump	Process 78276 (kde-open) of user 1000 dumped core.

Stack trace of thread 78276:
#0  0x00007b20f08a8e44 n/a (libc.so.6 + 0x94e44)
#1  0x00007b20f0850a30 raise (libc.so.6 + 0x3ca30)
#2  0x00007b20f08384c3 abort (libc.so.6 + 0x244c3)
#3  0x00007b20f0e8c643 n/a (libQt6Core.so.6 + 0x8c643)
#4  0x00007b20f0e8cde7 _ZNK14QMessageLogger5fatalEPKcz (libQt6Core.so.6 + 0x8cde7)
#5  0x00007b20f0e9bbd0 n/a (libQt6Core.so.6 + 0x9bbd0)
#6  0x00007b20ec838dea n/a (/tmp/.mount_activi0mY1qv/PyQt6/Qt6/lib/libQt6XcbQpa.so.6 + 0x5fdea)
#7  0x000063a9db184170 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64

Additional context

losogudok avatar Jul 22 '24 13:07 losogudok

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Jul 22 '24 13:07 github-actions[bot]

It seems that updating pyproject.toml

-PyQt6 = "6.5.3"
-PyQt6-Qt6 = "6.5.3"
+PyQt6 = ">=6.7.1"
+PyQt6-Qt6 = ">=6.7.1"

fixed the problem but I need more testing.

losogudok avatar Jul 22 '24 20:07 losogudok

I believe AUR version need updated version of PyQt6 and PyQt6-Qt6

losogudok avatar Jul 23 '24 18:07 losogudok