Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18216 - app-office/dia-0.91 can't find pygtk module
Summary: app-office/dia-0.91 can't find pygtk module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-26 08:31 UTC by Peter Ruskin
Modified: 2003-03-31 15:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2003-03-26 08:31:44 UTC
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
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-03-26 14:55:43 UTC
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?
Comment 2 Peter Ruskin 2003-03-26 15:59:06 UTC
# 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
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-03-26 16:17:22 UTC
looks like your pygtk installation is faulty.

try emerge'ing pygtk again
Comment 4 Peter Ruskin 2003-03-26 16:24:02 UTC
I *did* emerge pygtk dia
Comment 5 Matthias Richter 2003-03-26 16:38:58 UTC
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.
Comment 6 Peter Ruskin 2003-03-26 16:52:37 UTC
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
Comment 7 Alastair Tse (RETIRED) gentoo-dev 2003-03-26 17:00:12 UTC
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
Comment 8 Peter Ruskin 2003-03-26 17:04:22 UTC
# qpkg -f -v /usr/lib/python2.2/site-packages/gtk
returns nothing.
Comment 9 Matthias Richter 2003-03-27 02:12:48 UTC
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.
Comment 10 foser (RETIRED) gentoo-dev 2003-03-27 05:25:11 UTC
i havent looked at all at dia2, but shouldnt the pygtk dep be 1.99+ (aka pygtk2) ?

Comment 11 Alastair Tse (RETIRED) gentoo-dev 2003-03-30 17:47:26 UTC
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.
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-03-31 00:58:36 UTC
1.99.15 is gtk2
Comment 13 Alastair Tse (RETIRED) gentoo-dev 2003-03-31 06:08:02 UTC
yes, this version of dia is gtk2
Comment 14 foser (RETIRED) gentoo-dev 2003-03-31 06:39:54 UTC
let me say again, it is gtk2 :)

this can be closed now, can't it ?
Comment 15 Alastair Tse (RETIRED) gentoo-dev 2003-03-31 15:14:56 UTC
yeah, i think its pretty much resolved .. 

btw, i told him to reemerge >=0.6.10 because older version conflict with 1.99.x.