Using Caffeine on Debian

1,383 views
Skip to first unread message

Brad Smith

unread,
Apr 17, 2010, 10:19:28 AM4/17/10
to caffeine-...@googlegroups.com
I was e-mailed by someone that wanted to use Caffeine on Debian, which
uses Python 2.5 by default. I proposed the following to make Caffeine
work, and I'm sending this to the list just to make it available for
future reference:

What about something like "/usr/bin/python2.6"? If that runs the 2.6
version of Python, then just change the first line of "bin/caffeine"
from:
#!/usr/bin/env python
to:
#!/usr/bin/python2.6

That might do the trick.

The user reported that this seemed to allow them to run Caffeine on Debian.


--
Subscription settings: http://groups.google.com/group/caffeine-for-linux/subscribe?hl=en

Kerrick Long

unread,
May 18, 2012, 4:30:43 PM5/18/12
to caffeine-...@googlegroups.com
Running Debian Squeeze and GNOME 2; I tried changing the line, and got this error:

[~/Downloads/recipe-2.4.1+419] $ ./bin/caffeine 
Traceback (most recent call last):
  File "./bin/caffeine", line 40, in <module>
    import caffeine
  File "./bin/../caffeine/__init__.py", line 23, in <module>
    from gi.repository import Gtk, Gio
ImportError: No module named gi.repository

Tobias Schöls

unread,
Jul 10, 2012, 11:17:12 AM7/10/12
to caffeine-...@googlegroups.com
Hey,

just got it running on wheezy by installing gir1.2-notify-0.7, it's also in the squeeze repositories. Hope that helped.

Good Luck!
Reply all
Reply to author
Forward
0 new messages