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

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
ricanlinux
Posts: 63
Joined: 2007-05-02 00:02

compiling caffeine on Debian Wheezy on powerpc

#1 Post by ricanlinux »

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...

schnuller
Posts: 386
Joined: 2014-11-25 05:05

Re: compiling caffeine on Debian Wheezy on powerpc

#2 Post by schnuller »

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 ...

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: compiling caffeine on Debian Wheezy on powerpc

#3 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: compiling caffeine on Debian Wheezy on powerpc

#4 Post by stevepusser »

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.
MX Linux packager and developer

ricanlinux
Posts: 63
Joined: 2007-05-02 00:02

Re: compiling caffeine on Debian Wheezy on powerpc

#5 Post by ricanlinux »

stevepusser 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.
I installed the packages and now I am getting this error

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'

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: compiling caffeine on Debian Wheezy on powerpc

#6 Post by stevepusser »

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.
MX Linux packager and developer

ricanlinux
Posts: 63
Joined: 2007-05-02 00:02

Re: compiling caffeine on Debian Wheezy on powerpc

#7 Post by ricanlinux »

Thanks steve!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: compiling caffeine on Debian Wheezy on powerpc

#8 Post by stevepusser »

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!
MX Linux packager and developer

neolovich
Posts: 5
Joined: 2017-02-15 14:15

Re: compiling caffeine on Debian Wheezy on powerpc

#9 Post by neolovich »

Hello!
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
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?

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: compiling caffeine on Debian Wheezy on powerpc

#10 Post by dasein »

neolovich wrote:i try to install caffeine on Linux Mint Debian Edition. It is based on Debian 8.
(Emphasis added)
"Based on" is not the same as "is."

If you can reproduce the problem in stock Debian, post back.

Otherwise, ask in the Mint forums.

It's just that simple.

neolovich
Posts: 5
Joined: 2017-02-15 14:15

Re: compiling caffeine on Debian Wheezy on powerpc

#11 Post by neolovich »

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 :)

Post Reply