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

get_monitors() list index out of range #91

Open
Evidlo opened this issue Sep 21, 2024 · 1 comment
Open

get_monitors() list index out of range #91

Evidlo opened this issue Sep 21, 2024 · 1 comment

Comments

@Evidlo
Copy link
Owner

Evidlo commented Sep 21, 2024

Hello, On Arch here, Manjaro to be precise, and i've got a similar issue. I've dug as much as I could and this issue is the most simmilar.

I get this error where screen selector doesnt' seem to work. I've checked that my Python and my config is up to date. Manually re-installed all the python libraries needed. Running out of ideas any help would be great as I believe this to be a great project.

    ~/Downloadsremouse --debug                                                               ✔ 
Password for '10.11.99.1': 
connected to 10.11.99.1
Debugging enabled...
Chose monitor: Monitor(x=0, y=0, width=1920, height=1200, width_mm=302, height_mm=189, name='eDP-1', is_primary=True)
1
1
^C%                                                                                                        ~/Downloadsremouse --debug --monitor 1                                           ✔  14sPassword for '10.11.99.1': 
connected to 10.11.99.1
Debugging enabled...
Traceback (most recent call last):
  File "/usr/bin/remouse", line 33, in <module>
    sys.exit(load_entry_point('remarkable-mouse==5.2.1', 'console_scripts', 'remouse')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/remarkable_mouse/remarkable_mouse.py", line 119, in main
    read_tablet(args, remote_device)
  File "/usr/lib/python3.12/site-packages/remarkable_mouse/pynput.py", line 70, in read_tablet
    monitor = get_monitors()[args.monitor]
              ~~~~~~~~~~~~~~^^^^^^^^^^^^^^
IndexError: list index out of range
    ~/Downloads                                                                              1

Originally posted by @Hellunteur in #56 (comment)

@Evidlo
Copy link
Owner Author

Evidlo commented Sep 21, 2024

Have you tried with --monitor 0, or just not specifying the monitor at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant