Project

General

Profile

Actions

Bug #4155

closed

bringing virt-manager to py26 - also fixing 1781

Added by Nickolas Nolan about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-09-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
virt-manager

Description

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.

Actions #1

Updated by Nickolas Nolan about 8 years ago

found urlgrabber. It's well, web/urlgrabber. I would never have guessed.
it needs a python2.6 copy.

Actions #2

Updated by Milan Jurik about 8 years ago

  • Status changed from New to Rejected
  • Tags changed from needs-triage virt-manager to virt-manager

virt-manager will be removed in the next release, it is not maintained.

Actions

Also available in: Atom PDF