No encoding declared on /usr/bin/caffeine

Bug #1719955 reported by Stephen Smith on 2017-09-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Caffeine
Undecided
Unassigned

Bug Description

I am on arch with the latest caffeine installed (r665) and when running the caffeine executable, I get the error:

  File "/usr/bin/caffeine", line 3
SyntaxError: Non-ASCII character '\xc2' in file /usr/bin/caffeine on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

This is easily fixed by adding "# coding: utf8" as the second line, or "# -*- coding: utf-8 -*-" or something similar.

Stephen Smith (stephen304) wrote :

Actually I think this is a false alarm. Was running it with python2...

Stephen Smith (stephen304) wrote :

Issue solved. I forked the caffeine-ng pkgbuild to try to get this fork back on arch (since that fork is pre-html5-fullscreen-detection), and didn't realize it moved to python3 since the fork.

Reuben Thomas (rrt) on 2017-09-27
Changed in caffeine:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers