This repository was archived by the owner on Apr 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 431
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Redshift crash on Arch Linux: UnicodeDecodeError #271
Copy link
Copy link
Closed
Description
See title. The following error occurs on any redshift-gtk command, but not on redshift commands. It might be a Python version bug? Arch uses Python3 by default. Let me know if I can provide more information!
$ redshift -V
redshift 1.10
$ sudo pacman -Q redshift
redshift 1.10-2
$ python --version
Python 3.5.0
$ redshift-gtk
Traceback (most recent call last):
File "/usr/lib/python3.5/tokenize.py", line 392, in find_cookie
line_string = line.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 40: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/redshift-gtk", line 26, in <module>
from redshift_gtk.statusicon import run
File "/usr/lib/python3.5/site-packages/redshift_gtk/statusicon.py", line 32, in <module>
from gi.repository import Gtk, GLib, GObject
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
File "/usr/lib/python3.5/site-packages/gi/importer.py", line 115, in load_module
dynamic_module = load_overrides(introspection_module)
File "/usr/lib/python3.5/contextlib.py", line 66, in __exit__
next(self.gen)
File "/usr/lib/python3.5/site-packages/gi/importer.py", line 78, in _check_require_version
PyGIWarning, stacklevel=stacklevel)
File "/usr/lib/python3.5/warnings.py", line 18, in showwarning
file.write(formatwarning(message, category, filename, lineno, line))
File "/usr/lib/python3.5/warnings.py", line 26, in formatwarning
line = linecache.getline(filename, lineno) if line is None else line
File "/usr/lib/python3.5/linecache.py", line 16, in getline
lines = getlines(filename, module_globals)
File "/usr/lib/python3.5/linecache.py", line 47, in getlines
return updatecache(filename, module_globals)
File "/usr/lib/python3.5/linecache.py", line 136, in updatecache
with tokenize.open(fullname) as fp:
File "/usr/lib/python3.5/tokenize.py", line 456, in open
encoding, lines = detect_encoding(buffer.readline)
File "/usr/lib/python3.5/tokenize.py", line 433, in detect_encoding
encoding = find_cookie(first)
File "/usr/lib/python3.5/tokenize.py", line 397, in find_cookie
raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for '/usr/bin/sys'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels