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
Created attachment 195174 [details] emerge --info
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.
Interesting how rearranging the path allows the module to load... what version of pygtk do you have installed?
Reopen this bug when you provide the requested information.
(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
Post the output of: find /usr/lib64/python2.6 -name gtk
(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
(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
(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 >
can you confirm that this happens with 0.8.4?