checking for python... /usr/bin/python checking if Python version >= 1.5.2... okay checking local Python configuration... looks good checking for python module gtk... no configure: error: could not find pygtk module * dev-python/pygtk Latest version available: 1.99.15 Latest version installed: 1.99.15 Size of downloaded files: 544 kB Homepage: http://www.daa.com.au/~james/pygtk/ Description: GTK+2 bindings for Python
does the command: python -c "import gtk" report any errors? if it doesn't, can you attach /var/tmp/portage/dia-0.91/work/dia-0.91/config.log?
# python -c "import gtk" Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/python2.2/site-packages/gtk.py", line 22, in ? ImportError: No module named _gtk
looks like your pygtk installation is faulty. try emerge'ing pygtk again
I *did* emerge pygtk dia
I could get dia compiled after replacing /usr/lib/python2.2/site-packages/gtk with /usr/lib/python2.2/site-packages/gtk-2.0/gtk.
Me too, sort of: I did ln -s /usr/lib/python2.2/site-packages/gtk-2.0/gtk /usr/lib/python2.2/site-packages/gtk
you shouldn't need to do that, pygtk shouldn't put a directory there like that. can you do: qpkg -f -v /usr/lib/python2.2/site-packages/gtk and tell me which versions own that directory
# qpkg -f -v /usr/lib/python2.2/site-packages/gtk returns nothing.
Though having unmerged pygtk and remerged it before two files had remained in /usr/lib/python2.2/site-packages/gtk, most likely from a previous version, (from which version qpkg -v -f would not tell): -rw-r--r-- 1 root root 1326 Oct 18 17:49 __init__.pyc -rw-r--r-- 1 root root 68577 Oct 18 17:49 keysyms.pyc Having removed this directory unmerging and remerging pygtk dia works flawlessly. The symlink was indeed unnecessary.
i havent looked at all at dia2, but shouldnt the pygtk dep be 1.99+ (aka pygtk2) ?
yes, should be pygtk-1.99.x and also the gnome packages were wrong. should be fixed now. matthias, qpkg seems to have a problem with SLOTTED packages. those files shouldn't be there. try looking in /var/db/pkg/dev-python/pygtk-0.6.*/CONTENTS. peter, do you have <pygtk-0.6.10 installed? if you do, that might be the problem. you will need to emerge "=dev-python/pygtk-0.6.11" to fix it.
1.99.15 is gtk2
yes, this version of dia is gtk2
let me say again, it is gtk2 :) this can be closed now, can't it ?
yeah, i think its pretty much resolved .. btw, i told him to reemerge >=0.6.10 because older version conflict with 1.99.x.