Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
compiling caffeine on Debian Wheezy on powerpc
-
- Posts: 63
- Joined: 2007-05-02 00:02
compiling caffeine on Debian Wheezy on powerpc
I am trying compile caffeine from the git source. However I am getting the following:
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$ ./caffeine
Traceback (most recent call last):
File "./caffeine", line 22, in <module>
from ewmh import EWMH
File "/home/rican-linux/Build/git/caffeine-2.7.2/ewmh.py", line 7, in <module>
from Xlib import display, X, protocol, Xatom
ImportError: No module named Xlib
I verified that I do have the xlib module installed.
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$ dpkg -l |grep -i xlib
ii libx11-xcb1:powerpc 2:1.5.0-1+deb7u1 powerpc Xlib/XCB interface library
ii python-xlib 0.14+20091101-1 all Interface for Python to the X11 Protocol
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$
What could I be missing...
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$ ./caffeine
Traceback (most recent call last):
File "./caffeine", line 22, in <module>
from ewmh import EWMH
File "/home/rican-linux/Build/git/caffeine-2.7.2/ewmh.py", line 7, in <module>
from Xlib import display, X, protocol, Xatom
ImportError: No module named Xlib
I verified that I do have the xlib module installed.
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$ dpkg -l |grep -i xlib
ii libx11-xcb1:powerpc 2:1.5.0-1+deb7u1 powerpc Xlib/XCB interface library
ii python-xlib 0.14+20091101-1 all Interface for Python to the X11 Protocol
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$
What could I be missing...
Re: compiling caffeine on Debian Wheezy on powerpc
Probably the according "dev" file (that is what is usually needed when compiling). "apt-cache search xlib dev" or such.
"./caffeine" doesn't look like a command to compile a source to me. Without thinking about it. Someone more smart than i am will probably be able to explain ...
"./caffeine" doesn't look like a command to compile a source to me. Without thinking about it. Someone more smart than i am will probably be able to explain ...
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: compiling caffeine on Debian Wheezy on powerpc
It looks like the OP is trying to run the program, and not compile it. I think it's Python, so really does not need compiling like a C or C++ program would.
Research....OK, 2.7.2 is a Python3 program, and it's looking for python3-xlib, which is not in the Wheezy repositories. It may be possible to backport it. I'll check.
Research....OK, 2.7.2 is a Python3 program, and it's looking for python3-xlib, which is not in the Wheezy repositories. It may be possible to backport it. I'll check.
MX Linux packager and developer
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: compiling caffeine on Debian Wheezy on powerpc
OK, here it is, ported over from Ubuntu (horrors!) It's actually the same source code as for python-xlib in Wheezy, it's just that Ubuntu did a python3 build as well as the standard python2 version.
https://copy.com/jKOYUCXZAKDbMCOv
Python is arch-independent, so this package will install on anything that has Python3 available.
https://copy.com/jKOYUCXZAKDbMCOv
Python is arch-independent, so this package will install on anything that has Python3 available.
MX Linux packager and developer
-
- Posts: 63
- Joined: 2007-05-02 00:02
Re: compiling caffeine on Debian Wheezy on powerpc
I installed the packages and now I am getting this errorstevepusser wrote:OK, here it is, ported over from Ubuntu (horrors!) It's actually the same source code as for python-xlib in Wheezy, it's just that Ubuntu did a python3 build as well as the standard python2 version.
https://copy.com/jKOYUCXZAKDbMCOv
Python is arch-independent, so this package will install on anything that has Python3 available.
rican-linux@debian-ppc:~/Build/git/caffeine-2.7.2$ sudo ./caffeine
Traceback (most recent call last):
File "./caffeine", line 30, in <module>
ewmh = EWMH()
File "/home/rican-linux/Build/git/caffeine-2.7.2/ewmh.py", line 51, in __init__
self.display = _display or display.Display()
File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
display.Display.__init__(*(self, ) + args, **keys)
File "/usr/lib/python3/dist-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'
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: compiling caffeine on Debian Wheezy on powerpc
Try running it without sudo.
Here's a deb package of the program, too. https://copy.com/wTOxtQKJ6bRtGuMn
It will appear under Utilities or Accessories in your menu, depending on your desktop. I don't see the systray icon in KDE, but it may be a GNOME only thing. I don't see any error when launched via the command line.
Here's a deb package of the program, too. https://copy.com/wTOxtQKJ6bRtGuMn
It will appear under Utilities or Accessories in your menu, depending on your desktop. I don't see the systray icon in KDE, but it may be a GNOME only thing. I don't see any error when launched via the command line.
MX Linux packager and developer
-
- Posts: 63
- Joined: 2007-05-02 00:02
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: compiling caffeine on Debian Wheezy on powerpc
Let me know if it works, if you try it. I use KDE for the most part, so really don't have the problem that it fixes. If it does fix it, could you mark the thread [SOLVED]?
Thanks!
Thanks!
MX Linux packager and developer
Re: compiling caffeine on Debian Wheezy on powerpc
Hello!
i try to install caffeine on Linux Mint Debian Edition. It is based on Debian 8. I installed the python3-xlib with
But when i start the .deb file of caffeine 2.9.4 the error occures again that the dependency isnt satisfiable.
Maybe someone has an idea?
i try to install caffeine on Linux Mint Debian Edition. It is based on Debian 8. I installed the python3-xlib with
Code: Select all
pip3 install python3-xlib
Maybe someone has an idea?
Re: compiling caffeine on Debian Wheezy on powerpc
"Based on" is not the same as "is."neolovich wrote:i try to install caffeine on Linux Mint Debian Edition. It is based on Debian 8.
(Emphasis added)
If you can reproduce the problem in stock Debian, post back.
Otherwise, ask in the Mint forums.
It's just that simple.
Re: compiling caffeine on Debian Wheezy on powerpc
That my be correct but i found a workaround for the graphic card in this forum as you can see here http://forums.debian.net/viewtopic.php?f=6&t=120734 and in the mint forums i didn't get this answer so i thought it would be better to try it directly here. Because without this forum LMDE wouldn't run as smooth as it does now