Skip to content

aw-cli, aw-qt, aw-server etc doesn't want to work from the AUR package #1143

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

Closed
2 tasks done
tobixen opened this issue May 9, 2025 · 5 comments
Closed
2 tasks done

Comments

@tobixen
Copy link

tobixen commented May 9, 2025

  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • Archlinux:
  • 0.13.2-2 from AUR:

Describe the bug

Since the documentation at https://docs.activitywatch.net/en/latest/getting-started.html suggests installing through AUR, I take the chance on reporting this issue here rather than at the AUR pages.

To Reproduce

Steps to reproduce the behavior:
1. Install activitywatch on Archlinux through AUR, i.e. yay -S activitywatch.
2. some binaries are installed under /usr/bin, including aw-cli, aw-qt and aw-server
3. Run aw-cli and it fails, apparently the aw_cli library wasn't installed (it exists under the aw-core github repository).
4. Run aw-server and it fails because of ... wrong version of flask?
5. Run aw-qt. Since this automatically will start aw-server, the error from above is seen.

Errors:

$ aw-cli
Traceback (most recent call last):
  File "/usr/bin/aw-cli", line 5, in <module>
    from aw_cli.__main__ import main
ModuleNotFoundError: No module named 'aw_cli'

$ aw-server
Traceback (most recent call last):
  File "/usr/bin/aw-server", line 5, in <module>
    from aw_server import main
  File "/usr/lib/python3.13/site-packages/aw_server/__init__.py", line 6, in <module>
    from .main import main
  File "/usr/lib/python3.13/site-packages/aw_server/main.py", line 9, in <module>
    from .server import _start
  File "/usr/lib/python3.13/site-packages/aw_server/server.py", line 19, in <module>
    from .custom_static import get_custom_static_blueprint
  File "/usr/lib/python3.13/site-packages/aw_server/custom_static.py", line 24, in <module>
    from flask import (
    ...<4 lines>...
    )
ImportError: cannot import name 'escape' from 'flask' (/usr/lib/python3.13/site-packages/flask/__init__.py)

The python-flask version installed is 3.1.0-2 - latest version from Archlinux repositories. This seems to be an Archlinux problem, as the pyproject.toml for the server specifices that flask 2 should be utilized.

Copy link

github-actions bot commented May 9, 2025

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! 🙏

@BelKed
Copy link
Contributor

BelKed commented May 9, 2025

Similar to #1142

@tobixen
Copy link
Author

tobixen commented May 9, 2025

Closing this since this is an issue with the activitywatch AUR package and not ActivityWatch itself.

Very well, but then this is a documentation bug, since the doc suggests one should use AUR :-)

@tobixen
Copy link
Author

tobixen commented May 9, 2025

Oh, the official doc does indeed link to the activitywatch-bin package rather than the activitywatch package. It could be useful with a hint about this in the doc nevertheless.

@ErikBjare
Copy link
Member

Good point, fixed in ActivityWatch/docs@96af528

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

3 participants