compiling caffeine on Debian Wheezy on powerpc

Need help with C, C++, perl, python, etc?

compiling caffeine on Debian Wheezy on powerpc

Postby ricanlinux » 2015-01-12 05:28

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...
ricanlinux
 
Posts: 63
Joined: 2007-05-02 00:02

Re: compiling caffeine on Debian Wheezy on powerpc

Postby schnuller » 2015-01-12 18:02

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 ...
schnuller
 
Posts: 386
Joined: 2014-11-25 05:05

Re: compiling caffeine on Debian Wheezy on powerpc

Postby stevepusser » 2015-01-13 01:28

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.2, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0.2, QMPlay2 17.12.12
User avatar
stevepusser
 
Posts: 8943
Joined: 2009-10-06 05:53

Re: compiling caffeine on Debian Wheezy on powerpc

Postby stevepusser » 2015-01-13 01:43

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.2, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0.2, QMPlay2 17.12.12
User avatar
stevepusser
 
Posts: 8943
Joined: 2009-10-06 05:53

Re: compiling caffeine on Debian Wheezy on powerpc

Postby ricanlinux » 2015-01-14 03:18

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'
ricanlinux
 
Posts: 63
Joined: 2007-05-02 00:02

Re: compiling caffeine on Debian Wheezy on powerpc

Postby stevepusser » 2015-01-14 03:31

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.2, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0.2, QMPlay2 17.12.12
User avatar
stevepusser
 
Posts: 8943
Joined: 2009-10-06 05:53

Re: compiling caffeine on Debian Wheezy on powerpc

Postby ricanlinux » 2015-01-17 19:25

Thanks steve!
ricanlinux
 
Posts: 63
Joined: 2007-05-02 00:02

Re: compiling caffeine on Debian Wheezy on powerpc

Postby stevepusser » 2015-01-17 20:14

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!
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.2, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0.2, QMPlay2 17.12.12
User avatar
stevepusser
 
Posts: 8943
Joined: 2009-10-06 05:53

Re: compiling caffeine on Debian Wheezy on powerpc

Postby neolovich » 2017-03-09 08:47

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?
neolovich
 
Posts: 5
Joined: 2017-02-15 14:15

Re: compiling caffeine on Debian Wheezy on powerpc

Postby dasein » 2017-03-09 12:56

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.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: compiling caffeine on Debian Wheezy on powerpc

Postby neolovich » 2017-03-09 14:18

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 :)
neolovich
 
Posts: 5
Joined: 2017-02-15 14:15


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable