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

Unable to build from source: Stuck at aw-qt #1123

Closed
2 tasks done
SkyYap opened this issue Dec 27, 2024 · 2 comments
Closed
2 tasks done

Unable to build from source: Stuck at aw-qt #1123

SkyYap opened this issue Dec 27, 2024 · 2 comments

Comments

@SkyYap
Copy link

SkyYap commented Dec 27, 2024

  • I am on the latest ActivityWatch version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • I am using WSL2, Ubuntu, version 2:

Describe the bug

I run make build and it works successfully on aw-core, aw-client however it stuck at:

Installing the current project: aw-client (0.5.14)
make[1]: Leaving directory '/mnt/c/Users/sk_16/Documents/GitHub/activitywatch/aw-client'
Building aw-qt
make[1]: Entering directory '/mnt/c/Users/sk_16/Documents/GitHub/activitywatch/aw-qt'
poetry install
Installing dependencies from lock file

pyproject.toml changed significantly since poetry.lock was last generated. Run `poetry lock [--no-update]` to fix the lock file.
make[1]: *** [Makefile:4: build] Error 1
make[1]: Leaving directory '/mnt/c/Users/sk_16/Documents/GitHub/activitywatch/aw-qt'
Error in aw-qt build
make: *** [Makefile:48: build] Error 2

I then try to run poetry lock --no-update in aw-qt yet face this issue:

(venv) skyyap@Sky:/mnt/c/Users/sk_16/Documents/GitHub/activitywatch/aw-qt$ poetry lock --no-update
Resolving dependencies... (1.5s)

The current project's supported Python range (>=3.8,<4.0) is not compatible with some of the required packages Python requirement:
  - pyinstaller requires Python <3.13,>=3.8, so it will not be satisfied for Python >=3.13,<4.0
  - pyinstaller requires Python <3.14,>=3.8, so it will not be satisfied for Python >=3.14,<4.0
  - pyinstaller requires Python <3.13,>=3.8, so it will not be satisfied for Python >=3.13,<4.0
  - pyinstaller requires Python <3.13,>=3.8, so it will not be satisfied for Python >=3.13,<4.0
  - pyinstaller requires Python <3.13,>=3.8, so it will not be satisfied for Python >=3.13,<4.0
  - pyinstaller requires Python <3.14,>=3.8, so it will not be satisfied for Python >=3.14,<4.0
  - pyinstaller requires Python <3.14,>=3.8, so it will not be satisfied for Python >=3.14,<4.0

Because no versions of pyinstaller match >6.6,<6.7.0 || >6.7.0,<6.8.0 || >6.8.0,<6.9.0 || >6.9.0,<6.10.0 || >6.10.0,<6.11.0 || >6.11.0,<6.11.1 || >6.11.1
 and pyinstaller (6.7.0) requires Python <3.13,>=3.8, pyinstaller is forbidden.
And because pyinstaller (6.8.0) requires Python <3.13,>=3.8, pyinstaller is forbidden.
And because pyinstaller (6.9.0) requires Python <3.13,>=3.8
 and pyinstaller (6.10.0) requires Python <3.14,>=3.8, pyinstaller is forbidden.
And because pyinstaller (6.11.0) requires Python <3.14,>=3.8
 and pyinstaller (6.11.1) requires Python <3.14,>=3.8, pyinstaller is forbidden.
So, because pyinstaller (6.6.0) requires Python <3.13,>=3.8
 and aw-qt depends on pyinstaller (>=6.6), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.13"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.14"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.13"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.13"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.13"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.14"
    For pyinstaller, a possible solution would be to set the `python` property to ">=3.8,<3.14"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

To Reproduce

Expected behavior

It should install successfully.

Version

  1. git --version
    git version 2.43.0

  2. make --version
    GNU Make 4.3
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2020 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

  3. python --version
    Python 3.11.11

  4. poetry --version
    Poetry (version 1.8.2)

  5. npm --version
    10.9.0

  6. cargo --version
    cargo 1.83.0 (5ffbef321 2024-10-29)

Copy link

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

@SkyYap
Copy link
Author

SkyYap commented Dec 29, 2024

This bug was happened due to this latest commit. Just add the ,<3.13" back and it works.

@SkyYap SkyYap closed this as completed Dec 29, 2024
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

1 participant