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

No trackma-gtk or trackma-qt #765

Open
wolfsilver00 opened this issue Mar 9, 2025 · 4 comments
Open

No trackma-gtk or trackma-qt #765

wolfsilver00 opened this issue Mar 9, 2025 · 4 comments
Labels

Comments

@wolfsilver00
Copy link

After installing from the AUR (archlinux user repository) I have only the CLI, but when trying to run the commands for the grpahical interfaces it fails as there is no such command.

Any idea what might be happening?

@molkoback
Copy link
Contributor

Same. As a workaround you can create trackma-qt and trackma-gtk in your PATH manually.

trackma-qt:

#!/usr/bin/python
import sys
from trackma.ui.qt import main
if __name__ == '__main__':
    sys.exit(main())

trackma-gtk:

#!/usr/bin/python
import sys
from trackma.ui.gtk import main
if __name__ == '__main__':
    sys.exit(main())

Remember to make them executable with chmod +x.

@wolfsilver00
Copy link
Author

Same. As a workaround you can create trackma-qt and trackma-gtk in your PATH manually.

trackma-qt:

#!/usr/bin/python
import sys
from trackma.ui.qt import main
if __name__ == '__main__':
    sys.exit(main())

trackma-gtk:

#!/usr/bin/python
import sys
from trackma.ui.gtk import main
if __name__ == '__main__':
    sys.exit(main())

Remember to make them executable with chmod +x.

Ty ty, this helped :D

@FichteFoll
Copy link
Collaborator

I suspect it's because of how we specify the scripts to install with extras:

trackma/pyproject.toml

Lines 53 to 57 in a3c405f

[tool.poetry.scripts]
trackma = "trackma.ui.cli:main"
trackma-curses = { callable = "trackma.ui.curses:main", extras= ["curses"] }
trackma-gtk = { callable = "trackma.ui.gtk:main", extras = ["gtk"] }
trackma-qt = { callable = "trackma.ui.qt:main", extras = ["qt"] }

Did this behavior change recently, e.g. after poetry 2 was released, or have you only recently installed trackma? I intend to this out some time, but am really pressed on time currently.

@molkoback
Copy link
Contributor

You're right. Poetry 2.0 removed the support for scripts with extras: https://python-poetry.org/blog/announcing-poetry-2.0.0/

@FichteFoll FichteFoll added the bug label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants