[Bug 988328] New: caffeine does not start
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328 Bug ID: 988328 Summary: caffeine does not start Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: bnc-team-gnome@forge.provo.novell.com Reporter: mmanno@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 Build Identifier: 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 After adding '# encoding: utf-8' to the source file, it's still not starting: /usr/bin/caffeine:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. Reproducible: Always -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c1
Dominique Leuenberger
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 Build Identifier:
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 likely a bug in caffeine - and needs to be fixed (but, as you said: is not causing the actual failure)
After adding '# encoding: utf-8' to the source file, it's still not starting:
/usr/bin/caffeine:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
This is only a warning - and does not stop the application from starting. But I get more output when trying: Traceback (most recent call last): File "/usr/bin/caffeine", line 36, in <module> ewmh = EWMH() File "/usr/lib/python3.5/site-packages/ewmh.py", line 50, in __init__ self.display = _display or display.Display() File "/usr/lib/python3.5/site-packages/Xlib/display.py", line 80, in __init__ self.display = _BaseDisplay(display) File "/usr/lib/python3.5/site-packages/Xlib/display.py", line 62, in __init__ display.Display.__init__(*(self, ) + args, **keys) File "/usr/lib/python3.5/site-packages/Xlib/protocol/display.py", line 129, in __init__ raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n' => this in turn is an issue of python3-xlib itself (not caffeine), a minimal test case to show the issue:
from Xlib.display import Display display = Display()
run this small program through python and the same error appears. Passing the bug to the python3-xlib maintainer(s) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c2
--- Comment #2 from Mario Manno
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c3
--- Comment #3 from Dominique Leuenberger
Thanks for looking into this. It seems there is a bug in python3-xlib?
yes - except that pullreq7 is alredy part of our packages - so there must be more broken -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c4
--- Comment #4 from Mario Manno
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c5
--- Comment #5 from Dominique Leuenberger
I tried caffeine 2.8.3 from GNOME:Apps, but 'caffeine-indicator' is still not starting.
Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 890, in _find_spec AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/bin/caffeine-indicator", line 30, in <module> from gi.repository import GLib, Gtk, GObject, AppIndicator3 File "/usr/lib64/python3.5/site-packages/gi/importer.py", line 127, in find_module 'introspection typelib not found' % namespace) ImportError: cannot import name AppIndicator3, introspection typelib not found
That's a packaging bug - the auto-req scanner does not detect what is needed here it seems. try: zypper in "typelib(AppIndicator3)" -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c6
--- Comment #6 from Dominique Leuenberger
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=988328
http://bugzilla.opensuse.org/show_bug.cgi?id=988328#c7
--- Comment #7 from Dominique Leuenberger
(In reply to Mario Manno from comment #2)
Thanks for looking into this. It seems there is a bug in python3-xlib?
yes - except that pullreq7 is alredy part of our packages - so there must be more broken
Ups - actually not true - just that I had this patch applied on my local system without success for caffeine already -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com