bringing virt-manager to py26 - also fixing 1781
I noticed that bug illumos bug 1781 is still around on going from 151a7 to 151a8. On 151a7, the workaround was simple: install python-gnome-libs-24 and python-dbus-24. On 151a8, The problem is that pkg install returns "no updates necessary", which seems to result from the fact that python-gnome-libs-26 is already installed. This didn't hinder 151a7, if memory serves correctly. virt-manager.py can't just "import gtk", because /usr/bin/virt-manager is calling strictly python24. If you change it to 26, there are more missing modules. I have created a temporary workaround.
sed -i 's/python2.4/python2.6/g' /usr/bin/virt-manager ln -s /usr/lib/python2.4/vendor-packages/libvirt.py /usr/lib/python2.6/vendor-packages/libvirt.py ln -s /usr/lib/python2.4/vendor-packages/libvirt.pyc /usr/lib/python2.6/vendor-packages/ ln -s /usr/lib/python2.4/vendor-packages/libvirtmod.so /usr/lib/python2.6/vendor-packages/ ln -s /usr/lib/python2.4/vendor-packages/virtinst /usr/lib/python2.6/vendor-packages/ ln -s /usr/lib/python2.4/vendor-packages/virtconv /usr/lib/python2.6/vendor-packages/ ln -s /usr/lib/python2.4/vendor-packages/urlgrabber /usr/lib/python2.6/vendor-packages/
This workaround is poor at best, but It does Identify what work needs to be done.
1. change python2.4 version in /usr/bin/virt-manager in the package virt-manager
2. change install path of /usr/lib/python2.4 to /usr/lib/python2.6 in package virtinst
3. I'm not sure what provides urlgrabber, but It may need to be brought over.(I will edit this ticket if I find out later today)
I also have this hosted from http://research.ld-nn.net/tmp-OI-virt-manager_workaround.html for the time being.