Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274713 - dev-python/pygtk: virt-manager-0.7.0-r1 fail to start due to problem with import of gtk.glade
Summary: dev-python/pygtk: virt-manager-0.7.0-r1 fail to start due to problem with imp...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 14:44 UTC by Alessandro Surace
Modified: 2010-04-28 22:33 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,5.20 KB, text/plain)
2009-06-19 14:45 UTC, Alessandro Surace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Surace 2009-06-19 14:44:10 UTC
When I try to start virt-manager it failes with problem on the import of gtk.glade. Seems i doesn't find it even if the modules search path is appatently correct.


Reproducible: Always

Steps to Reproduce:
1. virt-manager
2.
3.

Actual Results:  
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 371, in <module>
    _show_startup_error(str(run_e), "".join(traceback.format_exc()))
  File "/usr/share/virt-manager/virt-manager.py", line 53, in _show_startup_error
    from virtManager.error import vmmErrorDialog
  File "/usr/share/virt-manager/virtManager/error.py", line 21, in <module>
    import gtk.glade
ImportError: No module named glade
Comment 1 Alessandro Surace 2009-06-19 14:45:56 UTC
Created attachment 195174 [details]
emerge --info
Comment 2 Alessandro Surace 2009-06-19 14:52:44 UTC
I've found a work-around but I don0t understand what really make the difference:

Normally  when I issue the command python -c "import sys ;  print sys.path ; import gtk;import gtk.glade"
 
I get
['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/sancho-0', '/usr/lib64/portage/pym']
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named glade

If I set manually PYTHONPATH:
export PYTHONPATH=/usr/lib64/python2.6/site-packages/gtk-2.0
python -c "import sys ;  print sys.path ; import gtk;import gtk.glade"

['', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/sancho-0', '/usr/lib64/portage/pym']

It runs with problem...and therefore virt-manager too.
Comment 3 Wormo (RETIRED) gentoo-dev 2009-06-25 06:41:09 UTC
Interesting how rearranging the path allows the module to load... what version of pygtk do you have installed?
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-03 12:09:32 UTC
Reopen this bug when you provide the requested information.
Comment 5 Alessandro Surace 2009-09-04 14:55:29 UTC
(In reply to comment #3)
> Interesting how rearranging the path allows the module to load... what version
> of pygtk do you have installed?
> 

Version  2.14.1
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-18 18:15:39 UTC
Post the output of:
find /usr/lib64/python2.6 -name gtk
Comment 7 Alessandro Surace 2010-01-08 10:24:09 UTC
(In reply to comment #6)
> Post the output of:
> find /usr/lib64/python2.6 -name gtk
> 

/usr/lib64/python2.6/site-packages/gtk-2.0/gtk
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-08 14:00:00 UTC
(In reply to comment #7)

Post the output of:
find /usr/lib64/python2.6 -name "pygtk.pth*"
cat /usr/lib64/python2.6/site-packages/pygtk.pth
Comment 9 Alessandro Surace 2010-01-11 13:00:31 UTC
(In reply to comment #8)
find /usr/lib64/python2.6 -name "pygtk.pth*"
/usr/lib64/python2.6/site-packages/pygtk.pth-2.0
/usr/lib64/python2.6/site-packages/pygtk.pth

cat /usr/lib64/python2.6/site-packages/pygtk.pth
gtk-2.0

Where do you think is the problem?
> (In reply to comment #7)
> 
> Post the output of:
> find /usr/lib64/python2.6 -name "pygtk.pth*"
> cat /usr/lib64/python2.6/site-packages/pygtk.pth
> 

Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2010-04-28 22:33:01 UTC
can you confirm that this happens with 0.8.4?