Skip to content

Fails to successfully start the AppImage #1105

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

Open
2 tasks done
Victor239 opened this issue Oct 16, 2024 · 2 comments
Open
2 tasks done

Fails to successfully start the AppImage #1105

Victor239 opened this issue Oct 16, 2024 · 2 comments

Comments

@Victor239
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.

  • OS name and version: Kubuntu 24.10

  • ActivityWatch version: v0.13.2

Describe the bug

When trying to launch the AppImage I get the following error message:

2024-10-16 16:30:08 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2024-10-16 16:30:08 [WARNING]: Found matching file but was not executable: /tmp/.mount_activiaueqW2/aw-qt.desktop  (aw_qt.manager:64)
2024-10-16 16:30:08 [INFO ]: Found 8 bundled modules  (aw_qt.manager:85)
2024-10-16 16:30:08 [INFO ]: Found 1 system modules  (aw_qt.manager:119)
2024-10-16 16:30:08 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2024-10-16 16:30:08 [INFO ]: Starting module aw-awatcher  (aw_qt.manager:148)
2024-10-16 16:30:08 [INFO ]: Creating trayicon...  (aw_qt.trayicon:208)
/tmp/.mount_activiaueqW2/aw-qt: symbol lookup error: /tmp/.mount_activiaueqW2/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags
boss@boss-fwk13-7040:~$ Traceback (most recent call last):
  File "PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py", line 117, in <module>
  File "PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py", line 28, 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 "pkgutil.py", line 138, in <module>
  File "functools.py", line 811, in singledispatch
  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_activiaueqW2/aw-server/base_library.zip'
[82492] Failed to execute script 'pyi_rth_pkgutil' due to unhandled exception!
Error: Failed to create bucket aw-watcher-afk_boss-fwk13-7040

Caused by:
    0: error sending request for url (http://127.0.0.1:5600//api/0/buckets/aw-watcher-afk_boss-fwk13-7040): error trying to connect: tcp connect error: Connection refused (os error 111)
    1: error trying to connect: tcp connect error: Connection refused (os error 111)
    2: tcp connect error: Connection refused (os error 111)
    3: Connection refused (os error 111)

To Reproduce

  1. Launch AppImage from the command line
  2. See error

Expected behavior

No error

Documentation

Additional context

@tobixen
Copy link

tobixen commented May 14, 2025

I have the same. Installed the official activitywatch-bin-0.13.2-1 from AUR, starting aw-qt, I get an error /opt/activitywatch/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags. Full logs below. The interesting part is that things seems to work when compiling it manually through python virtualenv from the main branch. Perhaps this issue has been fixed, but not released yet?

2025-05-14 07:15:00 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2025-05-14 07:15:00 [WARNING]: Found matching file but was not executable: /opt/activitywatch/aw-server-rust/aw-server.service  (aw_qt.manager:64)
2025-05-14 07:15:00 [WARNING]: Found matching file but was not executable: /opt/activitywatch/aw-qt.desktop  (aw_qt.manager:64)
2025-05-14 07:15:00 [INFO ]: Found 7 bundled modules  (aw_qt.manager:85)
2025-05-14 07:15:00 [INFO ]: Found 0 system modules  (aw_qt.manager:119)
2025-05-14 07:15:00 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2025-05-14 07:15:00 [INFO ]: Starting module aw-watcher-afk  (aw_qt.manager:148)
2025-05-14 07:15:00 [INFO ]: Starting module aw-watcher-window  (aw_qt.manager:148)
2025-05-14 07:15:00 [INFO ]: Creating trayicon...  (aw_qt.trayicon:208)
aw-qt: symbol lookup error: /opt/activitywatch/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags

2025-05-14 07:15:00 [INFO ]: aw-watcher-afk started  (aw_watcher_afk.afk:62)
2025-05-14 07:15:00 [INFO ]: aw-watcher-window started  (aw_watcher_window.main:70)
2025-05-14 07:15:00 [INFO ]: Using storage method: peewee  (aw_server.main:33)
2025-05-14 07:15:00 [INFO ]: Starting up...  (aw_server.main:41)
2025-05-14 07:15:00 [INFO ]: Using database file: /home/tobias/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db  (aw_datastore.storages.peewee:150)
 * Serving Flask app 'aw-server'
 * Debug mode: off
2025-05-14 07:15:00 [INFO ]: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://localhost:5600  (werkzeug:187)
2025-05-14 07:15:00 [INFO ]: Press CTRL+C to quit  (werkzeug:187)
2025-05-14 07:15:01 [INFO ]: afkwatcher stopped because parent process died  (aw_watcher_afk.afk:82)
2025-05-14 07:15:01 [INFO ]: Connection to aw-server established by aw-watcher-afk  (aw_client.client:447)
2025-05-14 07:15:01 [INFO ]: window-watcher stopped because parent process died  (aw_watcher_window.main:110)
2025-05-14 07:15:01 [INFO ]: Connection to aw-server established by aw-watcher-window  (aw_client.client:447)

Post-edit:

  • I've tried doing a full system upgrade and rebooted, didn't help
  • The server stays up after running the command above, but the tray icon fails, and the watchers die with the error message that the parent process disappeared.

@tobixen
Copy link

tobixen commented May 14, 2025

Here is the corresponding log when starting aw-qt from venv and latest git:

$ ./venv/bin/aw-qt 
2025-05-14 07:22:03 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2025-05-14 07:22:03 [WARNING]: Found matching file but was not executable: /home/tobias/activitywatch/aw-qt/aw-qt.spec  (aw_qt.manager:64)
2025-05-14 07:22:03 [INFO ]: Found 0 bundled modules  (aw_qt.manager:85)
2025-05-14 07:22:03 [INFO ]: Found 3 system modules  (aw_qt.manager:119)
2025-05-14 07:22:03 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2025-05-14 07:22:03 [INFO ]: Starting module aw-watcher-window  (aw_qt.manager:148)
2025-05-14 07:22:03 [INFO ]: Starting module aw-watcher-afk  (aw_qt.manager:148)
2025-05-14 07:22:03 [INFO ]: Creating trayicon...  (aw_qt.trayicon:208)
2025-05-14 07:22:03 [INFO ]: Initialized aw-qt and trayicon successfully  (aw_qt.trayicon:264)
2025-05-14 07:22:04 [INFO ]: aw-watcher-window started  (aw_watcher_window.main:71)
2025-05-14 07:22:04 [INFO ]: aw-watcher-afk started  (aw_watcher_afk.afk:62)
2025-05-14 07:22:04 [INFO ]: Using storage method: peewee  (aw_server.main:33)
2025-05-14 07:22:04 [INFO ]: Starting up...  (aw_server.main:41)
2025-05-14 07:22:04 [INFO ]: Using database file: /home/tobias/.local/share/activitywatch/aw-server/peewee-sqlite.v2.db  (aw_datastore.storages.peewee:150)
 * Serving Flask app 'aw-server'
 * Debug mode: off
2025-05-14 07:22:04 [INFO ]: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://localhost:5600  (werkzeug:187)
2025-05-14 07:22:04 [INFO ]: Press CTRL+C to quit  (werkzeug:187)
2025-05-14 07:22:04 [INFO ]: Connection to aw-server established by aw-watcher-window  (aw_client.client:461)
2025-05-14 07:22:04 [INFO ]: Connection to aw-server established by aw-watcher-afk  (aw_client.client:461)
2025-05-14 07:22:11 [ERROR]: Unhandled exception in listener callback  (pynput.keyboard.Listener:233)
Traceback (most recent call last):
  File "/home/tobias/activitywatch/venv/lib/python3.13/site-packages/pynput/_util/__init__.py", line 229, in inner
    return f(self, *args, **kwargs)
  File "/home/tobias/activitywatch/venv/lib/python3.13/site-packages/pynput/_util/xorg.py", line 470, in _handler
    self._handle(self._display_stop, event)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '_thread._ThreadHandle' object is not callable
2025-05-14 07:22:11 [ERROR]: Unhandled exception in listener callback  (pynput.mouse.Listener:233)
Traceback (most recent call last):
  File "/home/tobias/activitywatch/venv/lib/python3.13/site-packages/pynput/_util/__init__.py", line 229, in inner
    return f(self, *args, **kwargs)
  File "/home/tobias/activitywatch/venv/lib/python3.13/site-packages/pynput/_util/xorg.py", line 470, in _handler
    self._handle(self._display_stop, event)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '_thread._ThreadHandle' object is not callable
2025-05-14 07:22:12 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-window_archlinux)  (aw_server.api:317)

(There is an error there also, but that should probably be raised in another issue. At least the tray icon is in place, and the two standard watchers are running. Though, I've had problems with the afk watcher)

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

2 participants