LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-22-2004, 04:50 PM   #1
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Rep: Reputation: 15
Can't install PyPanel in Debian?


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.

Does anyone have any ideas?

Thanks!

- Jason
 
Old 08-22-2004, 05:03 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you hear of the package apt-file it is a great little tool to tell you what package you need to install to get the file you need to compile.

Code:
[HappyTux:/home/stephen]# apt-file search Xlib.h
ghc-cvs: usr/lib/ghc-6.3/imports/Graphics/X11/Xlib.hi
ghc-cvs: usr/lib/ghc-6.3/include/HsXlib.h
ghc-cvs-doc: usr/share/doc/ghc-cvs-doc/html/libraries/X11/Graphics.X11.Xlib.html
ghc-cvs-libsrc: usr/share/doc/ghc-cvs-libsrc/X11/Graphics/X11/Xlib.hs
ivtools-dev: usr/X11R6/include/IV-X11/Xlib.h
ivtools-dev: usr/X11R6/include/IV-X11/Xlib.h
libx11-dev: usr/X11R6/include/X11/Xlib.h
libx11-dev: usr/X11R6/include/X11/Xlib.h
lsbdev: var/lib/lsbdev/lsb_header/All/X11/Xlib.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA32/X11/Xlib.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA64/X11/Xlib.h.defs
lsbdev: var/lib/lsbdev/lsb_header/X11/Xlib.h
mozilla-dev: usr/include/mozilla/widget/nsIDragSessionXlib.h
mozilla-dev: usr/include/mozilla/widget/nsIDragSessionXlib.h
mozilla-thunderbird-dev: usr/include/mozilla-thunderbird/widget/nsIDragSessionXlib.h
perl-tk: usr/lib/perl5/Tk/pTk/Xlib.h
perl-tk: usr/lib/perl5/Tk/pTk/Xlib.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xlib.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xlib.h
xemacs21-bin: usr/lib/xemacs-21.4.15/i386-debian-linux/include/extw-Xlib.h
[HappyTux:/home/stephen]# apt-file search Xutil.h
ivtools-dev: usr/X11R6/include/IV-X11/Xutil.h
ivtools-dev: usr/X11R6/include/IV-X11/Xutil.h
libooc-x11-dev: usr/lib/oo2c/X11/obj/Xutil.h
libooc-x11-dev: usr/lib/oo2c/X11/obj/Xutil.h
libx11-dev: usr/X11R6/include/X11/Xutil.h
libx11-dev: usr/X11R6/include/X11/Xutil.h
lsbdev: var/lib/lsbdev/lsb_header/All/X11/Xutil.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA32/X11/Xutil.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA64/X11/Xutil.h.defs
lsbdev: var/lib/lsbdev/lsb_header/X11/Xutil.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xutil.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xutil.h
[HappyTux:/home/stephen]# apt-file search Xatom.h
libooc-vo-dev: usr/lib/oo2c/VO/obj/Xatom.h
libooc-vo-dev: usr/lib/oo2c/VO/obj/Xatom.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xatom.h
tendra: usr/lib/TenDRA/lib/include/x5/lib.api/X11/Xatom.h
x-dev: usr/X11R6/include/X11/Xatom.h
x-dev: usr/X11R6/include/X11/Xatom.h
[HappyTux:/home/stephen]# apt-file search xpm.h
gnome-dev-doc: usr/share/doc/gnome-dev-doc/html/C/gnome-stock-xpm.html
gnome-dev-doc: usr/share/doc/gnome-dev-doc/html/C/gnome-stock-xpm.html
libxpm-dev: usr/X11R6/include/X11/xpm.h
libxpm-dev: usr/X11R6/include/X11/xpm.h
phpdoc: usr/share/doc/phpdoc/html/function.imagecreatefromxpm.html
phpdoc: usr/share/doc/phpdoc/html/function.imagecreatefromxpm.html
scilab: usr/lib/scilab/man/eng/linear/expm.htm
scilab: usr/lib/scilab/man/fr/linear/expm.htm
wxwin2.4-headers: usr/include/wx/imagxpm.h
wxwin2.4-headers: usr/include/wx/imagxpm.h
[HappyTux:/home/stephen]# apt-file search Xft.h
libxft-dev: usr/X11R6/include/X11/Xft/Xft.h
libxft-dev: usr/X11R6/include/X11/Xft/Xft.h
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.
 
Old 08-22-2004, 05:14 PM   #3
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
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?
 
Old 08-22-2004, 05:36 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 08-22-2004, 06:00 PM   #5
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
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?

Thanks for the help

- Jason
 
Old 08-22-2004, 06:16 PM   #6
red_over_blue
LQ Newbie
 
Registered: Feb 2003
Location: MB, Canada
Posts: 26

Rep: Reputation: 15
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:

python-dev
python-xlib
libx11-dev
libxft2
xlibs-dev
libxft-dev
 
Old 08-22-2004, 06:40 PM   #7
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Awesome, I installed xlib-devs and then it worked great. Thanks for the help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 3.1 install help vandergeek Debian 1 08-25-2005 02:29 PM
How do you install on debian? frostbute669 Debian 4 07-10-2005 05:32 PM
GDM + Openbox & pypanel skybl4ck Linux - General 0 03-13-2005 09:34 PM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM
Debian Install Encrypted Linux - Distributions 2 02-23-2003 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration