No encoding declared on /usr/bin/caffeine

Bug #1719955 reported by Stephen Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Caffeine
Invalid
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.

Revision history for this message
Stephen Smith (stephen304) wrote :

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

Revision history for this message
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)
Changed in caffeine:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.