Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run on Fedora 40 Workstation #1077

Open
1 of 2 tasks
datalot-369 opened this issue Jun 22, 2024 · 6 comments
Open
1 of 2 tasks

Does not run on Fedora 40 Workstation #1077

datalot-369 opened this issue Jun 22, 2024 · 6 comments

Comments

@datalot-369
Copy link

  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
    Note: Actually, I don't think that an average user should search for terminal outputs on the Internet in order to run a time tracking app. It's already too much filling up a whole bug report. Most just delete it and next app.
  • OS name and version: Fedora 40 Workstation
  • ActivityWatch version: v0.13.1 AppImage

Describe the bug

Does not run.

To Reproduce

  1. Download the AppImage
  2. Right Click > Properties > Executable as program [ON]
  3. Double Click or ./appimagelocation

Expected behavior

I mean...

Documentation

aw-qt_2024-06-21T23-44-31.log

Additional context

datalot@fedora:~/Downloads/binary-portable$ ./activitywatch-linux-x86_64.AppImage 
2024-06-21 23:44:54 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2024-06-21 23:44:54 [WARNING]: Found matching file but was not executable: /tmp/.mount_activiRQc71F/aw-qt.desktop  (aw_qt.manager:64)
2024-06-21 23:44:54 [INFO ]: Found 8 bundled modules  (aw_qt.manager:85)
2024-06-21 23:44:54 [INFO ]: Found 0 system modules  (aw_qt.manager:119)
2024-06-21 23:44:54 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2024-06-21 23:44:54 [INFO ]: Starting module aw-watcher-afk  (aw_qt.manager:148)
2024-06-21 23:44:54 [INFO ]: Starting module aw-watcher-window  (aw_qt.manager:148)
2024-06-21 23:44:54 [INFO ]: Creating trayicon...  (aw_qt.trayicon:208)
/tmp/.mount_activiRQc71F/aw-qt: symbol lookup error: /tmp/.mount_activiRQc71F/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags
Traceback (most recent call last):
  File "PyInstaller/hooks/rthooks/pyi_rth_inspect.py", line 47, in <module>
Traceback (most recent call last):
  File "PyInstaller/hooks/rthooks/pyi_rth_inspect.py", line 47, in <module>
  File "PyInstaller/hooks/rthooks/pyi_rth_inspect.py", line 14, in _pyi_rthook
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "PyInstaller/hooks/rthooks/pyi_rth_inspect.py", line 14, in _pyi_rthook
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "inspect.py", line 39, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "inspect.py", line 41, in <module>
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "importlib/__init__.py", line 58, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen zipimport>", line 259, in load_module
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "linecache.py", line 11, in <module>
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen zipimport>", line 241, in load_module
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen zipimport>", line 709, in _get_module_code
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "<frozen zipimport>", line 536, in _get_data
  File "tokenize.py", line 32, in <module>
ConnectionAbortedError: [Errno 103] Software caused connection abort: '/tmp/.mount_activiRQc71F/aw-watcher-afk/base_library.zip'
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
[1927237] Failed to execute script 'pyi_rth_inspect' due to unhandled exception!
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "re.py", line 125, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 925, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1423, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1397, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1378, in _legacy_get_spec
  File "<frozen importlib._bootstrap>", line 423, in spec_from_loader
  File "<frozen importlib._bootstrap_external>", line 716, in spec_from_file_location
  File "<frozen zipimport>", line 191, in get_filename
  File "<frozen zipimport>", line 709, in _get_module_code
  File "<frozen zipimport>", line 536, in _get_data
OSError: [Errno 107] Transport endpoint is not connected: '/tmp/.mount_activiRQc71F/aw-server/base_library.zip'
[1927236] Failed to execute script 'pyi_rth_inspect' due to unhandled exception!
Traceback (most recent call last):
  File "PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 107, in <module>
  File "PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 18, in _pyi_rthook
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "multiprocessing/__init__.py", line 16, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "multiprocessing/context.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "multiprocessing/reduction.py", line 11, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 925, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1423, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1397, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1378, in _legacy_get_spec
  File "<frozen importlib._bootstrap>", line 423, in spec_from_loader
  File "<frozen importlib._bootstrap_external>", line 716, in spec_from_file_location
  File "<frozen zipimport>", line 191, in get_filename
  File "<frozen zipimport>", line 709, in _get_module_code
  File "<frozen zipimport>", line 536, in _get_data
OSError: [Errno 107] Transport endpoint is not connected: '/tmp/.mount_activiRQc71F/aw-watcher-window/base_library.zip'
[1927238] Failed to execute script 'pyi_rth_multiprocessing' due to unhandled exception!
@nonno-cicala
Copy link

nonno-cicala commented Jul 11, 2024

I get the same

/tmp/.mount_activiRQc71F/aw-qt: symbol lookup error: /tmp/.mount_activiRQc71F/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags

on my TuxedoOS, based on Ubuntu, both with AppImage and deb package.

It looks like the issue #939

Update: I worked around the issue using the deb package and removing these files from /opt/activitywatch:

sudo rm -r PyQt6/Qt6/lib libQt6* libicu* libgcc_s.so.1 libstdc++.so.6

After this I can use ActivityWatch but it doesn't open the dashbord from the tray icon, I need to go to the URL from the browser

@Ph15
Copy link

Ph15 commented Jul 12, 2024

Same over here: I have tried to install the AW AppImage, but my session crashed with a black screen and a weird code line when I first tried to open it. Running on Fedora 40 with Gnome × Wayland.

Is there any way to get the app working through the .zip install or Git clone?
If so, how to proceed? (I'm quite new to Linux, and have not been able to figure out how to install an app from a .zip file...)

@Ph15
Copy link

Ph15 commented Jul 13, 2024

P.S.: I have also tried installing the app through the .zip file and launching aw-qt, but I get no GUI. I can see in my monitor that aw-server and aw-watcher-window are running, but that's about it.

@ErikBjare
Copy link
Member

ErikBjare commented Jul 13, 2024

@nonno-cicala Then that's probably due to incompatibilities with system Wayland libraries.

Given symbol lookup error: /tmp/.mount_activiRQc71F/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags, this issue seems similar to rbreu/beeref#102

Upstream bug in Qt: https://bugreports.qt.io/browse/QTBUG-114635

Which suggests that, to fix this in a future release, we can update Wayland in CI:

owillebo 's analysis is correct: if wl_proxy_marshal_flags was introduced in wayland version 1.19.91 then you need at least wayland >= 1.19.91 when building both Qt and Pyside.

Removing the included Qt-related library files, instead relying on system versions which are compatible with Wayland libs, is a legitimate workaround. But the QTA_QPA_PLATFORM=xcb might be better and would work for the AppImage too.

@Ph15 If you run it from the terminal, what is the output? Similar as the above? The QTA_QPA_PLATFORM trick might work for you too.

@Ph15
Copy link

Ph15 commented Jul 18, 2024

Hello @ErikBjare!
Thanks for taking the time to answer!
I am not Linux-savvy enough at the moment to know how to use the QTA_QPA_PLATFORM=xcb trick.
Are there any simple steps I can follow to do so?

@Humam-Hamdan
Copy link

Humam-Hamdan commented Jul 31, 2024

ig you can just install Xorg and call it a day.


my ubuntu 24.04 just nixed xorg so that's the solution for me too in the meantime i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants