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

UnicodeDecodeError preventing usage #9

Open
theswampire opened this issue Sep 26, 2021 · 5 comments
Open

UnicodeDecodeError preventing usage #9

theswampire opened this issue Sep 26, 2021 · 5 comments

Comments

@theswampire
Copy link

theswampire commented Sep 26, 2021

I just encountered this exception on a fresh install of python-umonitor. autorandr was previously installed. I have not saved any profiles yet and it prevents from doing so.
On Archcraft, installed using yay.
Edit: tried using python setup.py install but no difference.

~$: umonitor --verbose
INFO:root:Connected to X11 server.
INFO:root:Output name b'DP-00\x7f'
INFO:root:Finished edid_to_string on output b'ACR0XV272U XV272'
INFO:root:Output name b'eDP-1-10\xf0u\xa2\xd5\xe9\x7f'
Traceback (most recent call last):
  File "/usr/bin/umonitor", line 33, in <module>
    sys.exit(load_entry_point('umonitor==20181018', 'console_scripts', 'umonitor')())
  File "/usr/lib/python3.9/site-packages/umonitor/__init__.py", line 23, in main
    umon.run()
  File "/usr/lib/python3.9/site-packages/umonitor/umonitor.py", line 53, in run
    self.view_current_status()
  File "/usr/lib/python3.9/site-packages/umonitor/umonitor.py", line 195, in view_current_status
    self.setup_info = self.get_setup_info()
  File "umonitor/screen.pyx", line 417, in screen.Screen.get_setup_info
  File "umonitor/screen.pyx", line 106, in screen.Screen._get_output_info
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 8: invalid continuation byte
@quinn-brittain
Copy link

Same issue on Archlinux.
Was installed and working previously. Broke after upgrading packages at some point.

[xxx@arch ~]$ umonitor -a
Traceback (most recent call last):
  File "/usr/bin/umonitor", line 33, in <module>
    sys.exit(load_entry_point('umonitor==20181018', 'console_scripts', 'umonitor')())
  File "/usr/lib/python3.9/site-packages/umonitor/__init__.py", line 23, in main
    umon.run()
  File "/usr/lib/python3.9/site-packages/umonitor/umonitor.py", line 38, in run
    self.autoload()
  File "/usr/lib/python3.9/site-packages/umonitor/umonitor.py", line 181, in autoload
    self.setup_info = self.get_setup_info()
  File "umonitor/screen.pyx", line 417, in screen.Screen.get_setup_info
  File "umonitor/screen.pyx", line 106, in screen.Screen._get_output_info
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 4: invalid continuation byte

@quinn-brittain
Copy link

Command will work correctly sometimes but will fail other times.
This was within a few seconds.

2021-12-09-16:44:16-screenshot

@rliou92
Copy link
Owner

rliou92 commented Dec 11, 2021

I just rebuilt screen.c.

Try the newest version and see if the error still happens.

@quinn-brittain
Copy link

The latest rebuild fixed the issue on my distro.

@quinn-brittain
Copy link

Both installing from AUR and from git function now without the UnicodeDecodeError.

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

3 participants