Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just switched to Kahakai as my window manager, and I'm very happy with it -- except I would like to have a taskbar. That's where PyPanel comes in. It looks like exactly what I want.
This is a fresh install of Debian using the new Sarge installer.
I have a feeling I'm missing some development tool that I need, or something, but I can't quite figure out what the problem is.
This is what I get when I try to install it:
Code:
jason@jdeb:~/PyPanel-1.3$ python setup.py install
running install
running build
running build_ext
building 'ppmodule' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_XFT=1 -DHAVE_XPM=1 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/python2.3 -c src/ppmodule.c -o build/temp.linux-i686-2.3/src/ppmodule.o
src/ppmodule.c:22:22: X11/Xlib.h: No such file or directory
src/ppmodule.c:23:23: X11/Xutil.h: No such file or directory
src/ppmodule.c:24:23: X11/Xatom.h: No such file or directory
src/ppmodule.c:27:21: X11/xpm.h: No such file or directory
src/ppmodule.c:32:25: X11/Xft/Xft.h: No such file or directory
src/ppmodule.c:33: error: parse error before '*' token
src/ppmodule.c:33: warning: type defaults to `int' in declaration of `draw'
src/ppmodule.c:33: warning: data definition has no type or storage class
src/ppmodule.c:34: error: parse error before '*' token
src/ppmodule.c:34: warning: type defaults to `int' in declaration of `xf'
src/ppmodule.c:34: warning: data definition has no type or storage class
src/ppmodule.c:39: error: parse error before '*' token
src/ppmodule.c:39: warning: type defaults to `int' in declaration of `dsp'
src/ppmodule.c:39: warning: data definition has no type or storage class
src/ppmodule.c:40: error: parse error before "def_icon"
src/ppmodule.c:40: warning: type defaults to `int' in declaration of `def_icon'
src/ppmodule.c:40: warning: type defaults to `int' in declaration of `def_mask'
src/ppmodule.c:40: warning: data definition has no type or storage class
src/ppmodule.c:41: error: parse error before "gc"
src/ppmodule.c:41: warning: type defaults to `int' in declaration of `gc'
src/ppmodule.c:41: warning: data definition has no type or storage class
src/ppmodule.c:46: error: parse error before '*' token
src/ppmodule.c:46: warning: function declaration isn't a prototype
src/ppmodule.c: In function `_ppshade':
src/ppmodule.c:54: error: `Window' undeclared (first use in this function)
src/ppmodule.c:54: error: (Each undeclared identifier is reported only once
src/ppmodule.c:54: error: for each function it appears in.)
src/ppmodule.c:54: error: parse error before "panel"
src/ppmodule.c:55: error: `XImage' undeclared (first use in this function)
src/ppmodule.c:55: error: `img' undeclared (first use in this function)
src/ppmodule.c:56: error: `Pixmap' undeclared (first use in this function)
src/ppmodule.c:56: error: parse error before "bgpm"
src/ppmodule.c:62: error: `panel' undeclared (first use in this function)
src/ppmodule.c:65: warning: implicit declaration of function `XGetImage'
src/ppmodule.c:65: warning: implicit declaration of function `RootWindow'
src/ppmodule.c:65: error: `ZPixmap' undeclared (first use in this function)
src/ppmodule.c:66: error: `bgpm' undeclared (first use in this function)
src/ppmodule.c:66: warning: implicit declaration of function `XCreatePixmap'
src/ppmodule.c:66: warning: implicit declaration of function `DefaultDepth'
src/ppmodule.c:155: warning: implicit declaration of function `XPutImage'
src/ppmodule.c:156: warning: implicit declaration of function `XSetWindowBackgroundPixmap'
src/ppmodule.c:157: warning: implicit declaration of function `XDestroyImage'
src/ppmodule.c:158: warning: implicit declaration of function `XFreePixmap'
src/ppmodule.c: In function `_ppfont':
src/ppmodule.c:167: error: `XftColor' undeclared (first use in this function)
src/ppmodule.c:167: error: parse error before "xftcol"
src/ppmodule.c:168: error: `XGlyphInfo' undeclared (first use in this function)
src/ppmodule.c:169: error: `XRenderColor' undeclared (first use in this function)
src/ppmodule.c:170: error: `Visual' undeclared (first use in this function)
src/ppmodule.c:170: error: `visual' undeclared (first use in this function)
src/ppmodule.c:170: warning: implicit declaration of function `DefaultVisual'
src/ppmodule.c:171: error: `Colormap' undeclared (first use in this function)
src/ppmodule.c:171: error: parse error before "cmap"
src/ppmodule.c:173: error: `XColor' undeclared (first use in this function)
src/ppmodule.c:174: error: `Window' undeclared (first use in this function)
src/ppmodule.c:179: error: `win' undeclared (first use in this function)
src/ppmodule.c:183: error: `xcol' undeclared (first use in this function)
src/ppmodule.c:188: warning: implicit declaration of function `XftTextExtentsUtf8'
src/ppmodule.c:188: error: `ginfo' undeclared (first use in this function)
src/ppmodule.c:196: warning: implicit declaration of function `XftDrawCreate'
src/ppmodule.c:196: error: `cmap' undeclared (first use in this function)
src/ppmodule.c:196: warning: assignment makes pointer from integer without a cast
src/ppmodule.c:197: error: request for member `ascent' in something not a structure or union
src/ppmodule.c:197: error: request for member `ascent' in something not a structure or union
src/ppmodule.c:197: error: request for member `descent' in something not a structure or union
src/ppmodule.c:198: warning: implicit declaration of function `XQueryColor'
src/ppmodule.c:199: error: `rcol' undeclared (first use in this function)
src/ppmodule.c:203: warning: implicit declaration of function `XftColorAllocValue'
src/ppmodule.c:203: error: `xftcol' undeclared (first use in this function)
src/ppmodule.c:204: warning: implicit declaration of function `XftDrawStringUtf8'
src/ppmodule.c:205: warning: implicit declaration of function `XftColorFree'
src/ppmodule.c:206: warning: implicit declaration of function `XftDrawDestroy'
src/ppmodule.c:216: warning: implicit declaration of function `XSync'
src/ppmodule.c:216: error: `False' undeclared (first use in this function)
src/ppmodule.c: In function `_ppfontsize':
src/ppmodule.c:224: error: `XGlyphInfo' undeclared (first use in this function)
src/ppmodule.c:224: error: parse error before "ginfo"
src/ppmodule.c:233: warning: implicit declaration of function `XftTextExtents8'
src/ppmodule.c:233: error: `ginfo' undeclared (first use in this function)
src/ppmodule.c: In function `_ppicon':
src/ppmodule.c:243: error: `Window' undeclared (first use in this function)
src/ppmodule.c:243: error: parse error before "win"
src/ppmodule.c:244: error: `XWMHints' undeclared (first use in this function)
src/ppmodule.c:244: error: `hints' undeclared (first use in this function)
src/ppmodule.c:245: error: `XGCValues' undeclared (first use in this function)
src/ppmodule.c:245: error: parse error before "gcv"
src/ppmodule.c:246: error: `GC' undeclared (first use in this function)
src/ppmodule.c:247: error: `Pixmap' undeclared (first use in this function)
src/ppmodule.c:254: error: `panel' undeclared (first use in this function)
src/ppmodule.c:254: error: `win' undeclared (first use in this function)
src/ppmodule.c:258: warning: implicit declaration of function `XGetWMHints'
src/ppmodule.c:259: error: `IconPixmapHint' undeclared (first use in this function)
src/ppmodule.c:260: error: `src_icon' undeclared (first use in this function)
src/ppmodule.c:261: error: `IconMaskHint' undeclared (first use in this function)
src/ppmodule.c:262: error: `src_mask' undeclared (first use in this function)
src/ppmodule.c:264: warning: implicit declaration of function `XFree'
src/ppmodule.c:269: error: `None' undeclared (first use in this function)
src/ppmodule.c:276: warning: implicit declaration of function `XGetGeometry'
src/ppmodule.c:276: error: `root' undeclared (first use in this function)
src/ppmodule.c:278: error: `trg_icon' undeclared (first use in this function)
src/ppmodule.c:281: error: `gcv' undeclared (first use in this function)
src/ppmodule.c:281: error: `False' undeclared (first use in this function)
src/ppmodule.c:282: error: `IncludeInferiors' undeclared (first use in this function)
src/ppmodule.c:283: error: `trg_mask' undeclared (first use in this function)
src/ppmodule.c:284: error: `mgc' undeclared (first use in this function)
src/ppmodule.c:284: warning: implicit declaration of function `XCreateGC'
src/ppmodule.c:284: error: `GCGraphicsExposures' undeclared (first use in this function)
src/ppmodule.c:284: error: `GCSubwindowMode' undeclared (first use in this function)
src/ppmodule.c:293: warning: implicit declaration of function `XCopyPlane'
src/ppmodule.c:295: warning: implicit declaration of function `XCopyArea'
src/ppmodule.c:301: warning: implicit declaration of function `XSetForeground'
src/ppmodule.c:301: warning: implicit declaration of function `WhitePixel'
src/ppmodule.c:302: warning: implicit declaration of function `XSetClipMask'
src/ppmodule.c:303: warning: implicit declaration of function `XSetClipOrigin'
src/ppmodule.c:310: warning: implicit declaration of function `XFreeGC'
src/ppmodule.c: In function `_ppinit':
src/ppmodule.c:319: error: `XGCValues' undeclared (first use in this function)
src/ppmodule.c:319: error: parse error before "gcv"
src/ppmodule.c:323: warning: implicit declaration of function `XSetErrorHandler'
src/ppmodule.c:324: error: `gcv' undeclared (first use in this function)
src/ppmodule.c:324: error: `False' undeclared (first use in this function)
src/ppmodule.c:325: warning: implicit declaration of function `XOpenDisplay'
src/ppmodule.c:325: warning: assignment makes pointer from integer without a cast
src/ppmodule.c:326: warning: implicit declaration of function `DefaultScreen'
src/ppmodule.c:329: warning: implicit declaration of function `XpmCreatePixmapFromData'
src/ppmodule.c:341: warning: implicit declaration of function `XftFontOpenXlfd'
src/ppmodule.c:341: warning: assignment makes pointer from integer without a cast
src/ppmodule.c:343: warning: implicit declaration of function `XftFontOpenName'
src/ppmodule.c:343: warning: assignment makes pointer from integer without a cast
src/ppmodule.c:344: error: `GCGraphicsExposures' undeclared (first use in this function)
src/ppmodule.c: At top level:
src/ppmodule.c:368: warning: function declaration isn't a prototype
error: command 'gcc' failed with exit status 1
I've tried running it as a regular user, and as root.. and I've got Python and Python-xlib like it wants.
So looking at this output it looks like you need the libxft-dev, libxpm-dev, x-dev and libx11-dev packages. You should use apt-file update before the first time you use it for the day to get the updated package list on the mirrors that have them not all do however.
Hmm, I got the packages you recommended (and apt-file), tried to install again. We're getting warmer, but this is what I get this time:
Code:
jason@jdeb:~/PyPanel-1.3$ python setup.py install
running install
running build
running build_ext
building 'ppmodule' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_XFT=1 -DHAVE_XPM=1 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/python2.3 -c src/ppmodule.c -o build/temp.linux-i686-2.3/src/ppmodule.osrc/ppmodule.c:27:21: X11/xpm.h: No such file or directory
src/ppmodule.c: In function `_ppinit':
src/ppmodule.c:329: warning: implicit declaration of function `XpmCreatePixmapFromData'
src/ppmodule.c: At top level:
src/ppmodule.c:368: warning: function declaration isn't a prototype
src/ppmodule.c: In function `_ppicon':
src/ppmodule.c:246: warning: `mgc' might be used uninitialized in this function
error: command 'gcc' failed with exit status 1
Now, if I were to use apt-file to check this out, what command would I use? Does it check the setup.py file, or would I have to have it look at the actual C file that I am having trouble compiling?
That is problems with the code itself you are going to need to go to the website and see if there is a bugzilla, mailing list or something like that to see if it is a known bug or you can as you say have a look yourself if you know anything about the code and see if you can fix it.
Originally posted by HappyTux That is problems with the code itself you are going to need to go to the website and see if there is a bugzilla, mailing list or something like that to see if it is a known bug or you can as you say have a look yourself if you know anything about the code and see if you can fix it.
Just to see if it would make a difference, I tried installing PyPanel 1.2 and got the same error.
Just out of curiousity, since I've seen lots of screenshots of PyPanel working and haven't found any messages/pages that talk about it not working.. What type of problem with the source code could cause it to compile fine on other systems but not on mine?
I just installed pypanel on a debian machine today. I'm not sure if you need ALL these, but try installing the following using apt. It is likely one of them that you are missing:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.