You are not logged in.

#1 2008-10-27 09:27:29

samwise
Member
From: Sydney, Australia
Registered: 2008-07-26
Posts: 53
Website

[SOLVED] compiling python-gtkextra

I'm trying to compile the python bindingsto the gtk extra widget set. I have python, pygtk, pygobject, and python-numeric installed. The program I'm trying to run specifies the latest cvs version, so I checked it out and did ./autogen.sh and make, but get the following error almost instantly:

Making all in gtkextra
make[1]: Entering directory
`/home/samwise/ABS/python-gtkextra/src/python-gtkextra2-build/gtkextra'
(cd . \
        && /usr/bin/python ./mycodegen.py \
           --register /usr/share/pygtk/2.0/defs/pango-types.defs \
           --register /usr/share/pygtk/2.0/defs/gdk-types.defs \
           --register /usr/share/pygtk/2.0/defs/gtk-types.defs \
           --override gtkextra.override \
           --prefix pygtkextra gtkextra.defs) > gen-gtkextra.c \
       && cp gen-gtkextra.c gtkextra.c \
       && rm -f gen-gtkextra.c
Traceback (most recent call last):
 File "./mycodegen.py", line 11, in <module>
   from codegen.argtypes import matcher
ImportError: No module named codegen.argtypes
make[1]: *** [gtkextra.c] Error 1
make[1]: Leaving directory
`/home/samwise/ABS/python-gtkextra/src/python-gtkextra2-build/gtkextra'
make: *** [all-recursive] Error 1

Can anyone help?

btw the python-gtkextra project seems pretty dead - the last cvs revision was in 2005! But my fellow student apparently managed to compile it on ubuntu and is happily hacking away on this program using it. Could the Arch pygtk etc packages be too new? Seeing as this looks unmaintained, are we going to have problems using this software?

Last edited by samwise (2008-12-26 02:49:20)


"He was perfect except for the fact that he was an engineer"

Offline

#2 2008-11-01 02:55:11

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [SOLVED] compiling python-gtkextra

Sorry for the late reply. python-gtkextra does seem dead but if you want to use it anyway, the following commands should land you a working build:

cvs -z3 -d:pserver:anonymous@python-gtkextra.cvs.sourceforge.net:/cvsroot/python-gtkextra co -P python-gtkextra2
cd python-gtkextra2/gtkextra
svn co https://code.fluendo.com/pigment/svn/trunk/pigment-python/codegen
cd ..

I only tested ./autogen.sh and make; didn't try to install it or use it.

Offline

#3 2008-11-01 05:13:18

samwise
Member
From: Sydney, Australia
Registered: 2008-07-26
Posts: 53
Website

Re: [SOLVED] compiling python-gtkextra

Awesome! I can comfirm that it builds successfully. I'd almost given up on this. If it works, i'll mark this as solved and put a package up on the AUR. Thanks!

EDIT: I also got it to build by copying the directory '/usr/share/pygobject/2.0/codegen' into the same spot.

EDIT: There is now a package in the AUR.

Last edited by samwise (2008-12-26 02:48:58)


"He was perfect except for the fact that he was an engineer"

Offline

Board footer

Powered by FluxBB