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

Python SyntaxError #8

Open
Kentaree opened this issue Feb 10, 2025 · 3 comments
Open

Python SyntaxError #8

Kentaree opened this issue Feb 10, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Kentaree
Copy link

I'm having various issues running this on Linux Mint, including the tray app but also the service itself seems to fail:

$ journalctl --user -b -f -u arctis-manager
Feb 10 11:04:15 desktop-linux arctis-manager[3958]:   File "/usr/local/lib/arctis-manager/./arctis_manager.py", line 18
Feb 10 11:04:15 desktop-linux arctis-manager[3958]:     os.system(f'notify-send {' '.join(args)} "{summary}" "{message.format(*args, **kwargs).replace('"', '\\"')}"')
Feb 10 11:04:15 desktop-linux arctis-manager[3958]:                                                                                                                  ^
Feb 10 11:04:15 desktop-linux arctis-manager[3958]: SyntaxError: f-string: expecting '}'
Feb 10 11:04:15 desktop-linux systemd[2522]: arctis-manager.service: Main process exited, code=exited, status=1/FAILURE
Feb 10 11:04:15 desktop-linux systemd[2522]: arctis-manager.service: Failed with result 'exit-code'.
Feb 10 11:04:16 desktop-linux systemd[2522]: arctis-manager.service: Scheduled restart job, restart counter is at 5.
Feb 10 11:04:16 desktop-linux systemd[2522]: arctis-manager.service: Start request repeated too quickly.
Feb 10 11:04:16 desktop-linux systemd[2522]: arctis-manager.service: Failed with result 'exit-code'.
Feb 10 11:04:16 desktop-linux systemd[2522]: Failed to start arctis-manager.service - Arctis Manager.

The version of python I'm running is 3.11.11:

$ python -V
Python 3.11.11

I've tried uninstalling and re-installing which also hasn't helped. If I need to provide any more info, please let me know

@elegos
Copy link
Owner

elegos commented Feb 10, 2025

Hello @Kentaree,

are you using an up-to-date version of Linux Mint? I'd try to install a VM and try to reproduce the error. Syntax seems to be correct though, it is strange that it complains about a missing parenthesis.

@elegos elegos added the bug Something isn't working label Feb 10, 2025
@Kentaree
Copy link
Author

Hi @elegos,

I recently updated to the very latest version:

$ inxi -Sxxx
System:
  Host: desktop-linux Kernel: 6.8.0-52-generic arch: x86_64 bits: 64
    compiler: gcc v: 13.3.0 clocksource: tsc
  Desktop: Cinnamon v: 6.4.6 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7
    dm: LightDM v: 1.30.0 Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble

I'm also confused by the syntax error, I've opened up the code in an IDE and it doesn't flag anything wrong with it. Maybe a locale issue? This is what I get as output for that:

LANG=en_IE.UTF-8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.UTF-8"
LC_NUMERIC="en_IE.UTF-8"
LC_TIME="en_IE.UTF-8"
LC_COLLATE="en_IE.UTF-8"
LC_MONETARY="en_IE.UTF-8"
LC_MESSAGES="en_IE.UTF-8"
LC_PAPER="en_IE.UTF-8"
LC_NAME="en_IE.UTF-8"
LC_ADDRESS="en_IE.UTF-8"
LC_TELEPHONE="en_IE.UTF-8"
LC_MEASUREMENT="en_IE.UTF-8"
LC_IDENTIFICATION="en_IE.UTF-8"
LC_ALL=

@elegos
Copy link
Owner

elegos commented Feb 13, 2025

Hello @Kentaree

I've freshly installed Linux Mint 22 on a virtual machine and attached the Arctis device. It is working as expected, so I can't reproduce the problem, unfortunately :(

P.S.
The distro comes with Python 3.12, so I changed the Pipfile accordingly, and I also had to manually install libxcb-cursor0, which apparently is a requirement for the PyQt6 library not handled with the library itself.

I don't think it's a LOCALE issue (how could it possibly be, being a python interpreter error?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants