Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] vte-016.14 fails to build - no codegen.py
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
aka.doode
n00b
n00b


Joined: 16 May 2005
Posts: 45
Location: Sweden

PostPosted: Fri Aug 08, 2008 8:27 pm    Post subject: [SOLVED] vte-016.14 fails to build - no codegen.py Reply with quote

When trying to emerge xfce4 vte-016.14 fails to build. This happened after a fresh install:
Code:
/usr/bin/pyton: can't open file '/usr/lib64/python2.4/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory


Not sure what else is important, but I'll add the call stack as well:
Code:
ebuild.sh,   line   49: Called src_compile
environment, line 2801: Called gnome2_src_compile
environment, line 2173: Called die


Edit: The only files that resemble that one the compiler is complaining about are:
Code:
/usr/share/pygtk/2.0/codegen/codegen.py
/usr/lib64/python2.4/compiler/pycodegen.py


Speedy help would be greatly appreciated, as I've been stuck in text mode for over three full days now, and can't wait to relax my eyes using some highly graphical stuff ;D


Last edited by aka.doode on Sat Aug 09, 2008 3:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Sat Aug 09, 2008 10:07 am    Post subject: Reply with quote

Exact same error here..
Code:
make[2]: Entering directory `/var/tmp/portage/x11-libs/vte-0.16.14/work/vte-0.16.14/python'
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/libpng12 -I/usr/include/pixman-1    -I/usr/include/python2.5 -I/usr/include/python2.5 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -march=opteron -O2 -pipe  -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Waggregate-return -Wcast-align -Wimplicit -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wshadow -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -fno-common -MT vtemodule_la-vtemodule.lo -MD -MP -MF .deps/vtemodule_la-vtemodule.Tpo -c -o vtemodule_la-vtemodule.lo `test -f 'vtemodule.c' || echo './'`vtemodule.c
(cd . \
    && /usr/bin/pygtk-codegen-2.0 \
            --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 vte.override \
            --prefix pyvte vte.defs) > gen-vte.c \
        && cp gen-vte.c vte.c \
        && rm -f gen-vte.c
/usr/bin/python: can't open file '/usr/lib64/python2.5/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory
make[2]: *** [vte.c] Error 2
make[2]: *** Waiting for unfinished jobs....


Tried symlinking to /usr/share/pygtk/2.0/codegen/codegen.py, that didn't work. Re-emerging pygtk or running python-updater does nothing. I've worked around it for now by doing emerge --skipfirst. Once everthing else is emerged xfce4 will work but doesn't have the nicer newer terminal.

So mine looks like this now...
Code:
emerge -pv xfce4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] x11-libs/vte-0.16.14  USE="python -debug -doc -opengl" 0 kB
[ebuild  N    ] x11-terms/terminal-0.2.8  USE="-dbus -debug -doc -startup-notification" 0 kB
[ebuild  N    ] xfce-base/xfce4-4.4.2  USE="cups -alsa -minimal -oss -xscreensaver" 0 kB

Help solving this appreciated
Back to top
View user's profile Send private message
EvaSDK
Retired Dev
Retired Dev


Joined: 12 Jul 2003
Posts: 171
Location: France, Paris

PostPosted: Sat Aug 09, 2008 10:49 am    Post subject: Reply with quote

either you didn't run python-updater when upgrading to python 2.5 or you are building a broken pygtk, see bug #233337 for the latter.
Back to top
View user's profile Send private message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Sat Aug 09, 2008 11:51 am    Post subject: Reply with quote

Must be the latter, this is on a new install using 2008.0-r1 livecd. I think I had actually looked at that bug.. looks familiar. Guess I must've read it and didn't quite make sense of it at the time.

So if r2 is broken, I did
Code:
# echo =dev-python/pygtk-2.12.1-r2 >> /etc/portage/package.mask
# emerge --oneshot pygtk
# emerge xfce4

and it works. Seems so simple now. Thanks :)
Back to top
View user's profile Send private message
aka.doode
n00b
n00b


Joined: 16 May 2005
Posts: 45
Location: Sweden

PostPosted: Sat Aug 09, 2008 3:38 pm    Post subject: Reply with quote

EvaSDK wrote:
either you didn't run python-updater when upgrading to python 2.5 or you are building a broken pygtk, see bug #233337 for the latter.

I used python 2.4 at the time (I too am fresh from an install CD - minimal though), but I did try upgrading to 2.5, then ran python-updater, but it didn't help. It sure is the bug you listed though.

Yak wrote:
Must be the latter, this is on a new install using 2008.0-r1 livecd. I think I had actually looked at that bug.. looks familiar. Guess I must've read it and didn't quite make sense of it at the time.

So if r2 is broken, I did
Code:
# echo =dev-python/pygtk-2.12.1-r2 >> /etc/portage/package.mask
# emerge --oneshot pygtk
# emerge xfce4

and it works. Seems so simple now. Thanks :)


That sure did the trick, thanks a lot :D
Case closed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum