Greetings! I''ve been trying to get virt-manager running on AMD64 Ubuntu 6.10, both virt-manager-0.2.5 and libvirt-0.1.8 compile and install successfully but I cant run virt manager, I get some seeingly simple error: Traceback (most recent call last): File "/usr/local/share/virt-manager/virt-manager.py", line 104, in ? from virtManager.engine import vmmEngine File "/usr/local/share/virt-manager/virtManager/engine.py", line 33, in ? from virtManager.create import vmmCreate File "/usr/local/share/virt-manager/virtManager/create.py", line 25, in ? import virtinst ImportError: No module named virtinst The libvert libraries are in /usr/local/lib, and similar under /usr/local/lib/python2.4/site-packages. Im a python noob, and have tried updating the PYTHONPATH to include these to folders explicity, also adding the following to virt-manager.py : sys.path.append(''/usr/local/lib/python2.4/site-packages'') sys.path.append(''/usr/local/lib'') None of this seem to make any difference. Im sure there will be other problems, but this seems such a basic problem - I just dont know how to fix it. Anyone got an idea? Thanks. andy
On Thu, Nov 02, 2006 at 11:15:20AM +0000, axb wrote:> Greetings! > > I''ve been trying to get virt-manager running on AMD64 Ubuntu 6.10, both > virt-manager-0.2.5 and libvirt-0.1.8 compile and install successfully > but I cant run virt manager, I get some seeingly simple error: > > Traceback (most recent call last): > File "/usr/local/share/virt-manager/virt-manager.py", line 104, in ? > from virtManager.engine import vmmEngine > File "/usr/local/share/virt-manager/virtManager/engine.py", line 33, > in ? > from virtManager.create import vmmCreate > File "/usr/local/share/virt-manager/virtManager/create.py", line 25, > in ? > import virtinst > ImportError: No module named virtinstAs well as virt-manager & libvirt, you need to install python-virtinst which provides a higher level API around libvirt for provisioning guest virtual machines. The mercurial repo is here: http://hg.et.redhat.com/virt/applications/virtinst--devel Or you can get the tar.gz from the src.rpm files in FC6. Dan -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Thanks for that Dan, I downloaded the source RPM, but there isn''t a clue on how to install it - I''m a python noob, so any advice on where to put the .py''s would be great! thanks andy On 02/11/06, Daniel P. Berrange <berrange@redhat.com> wrote:> > On Thu, Nov 02, 2006 at 11:15:20AM +0000, axb wrote: > > Greetings! > > > > I''ve been trying to get virt-manager running on AMD64 Ubuntu 6.10, both > > virt-manager-0.2.5 and libvirt-0.1.8 compile and install successfully > > but I cant run virt manager, I get some seeingly simple error: > > > > Traceback (most recent call last): > > File "/usr/local/share/virt-manager/virt-manager.py", line 104, in ? > > from virtManager.engine import vmmEngine > > File "/usr/local/share/virt-manager/virtManager/engine.py", line 33, > > in ? > > from virtManager.create import vmmCreate > > File "/usr/local/share/virt-manager/virtManager/create.py", line 25, > > in ? > > import virtinst > > ImportError: No module named virtinst > > As well as virt-manager & libvirt, you need to install python-virtinst > which provides a higher level API around libvirt for provisioning guest > virtual machines. The mercurial repo is here: > > http://hg.et.redhat.com/virt/applications/virtinst--devel > > Or you can get the tar.gz from the src.rpm files in FC6. > > Dan > -- > |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 > -=| > |=- Perl modules: http://search.cpan.org/~danberr/ > -=| > |=- Projects: http://freshmeat.net/~danielpb/ > -=| > |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B > 9505 -=| >
On Thu, Nov 09, 2006 at 09:30:58AM +0000, Andy Brook wrote:> Thanks for that Dan, > I downloaded the source RPM, but there isn''t a clue on how to install it - > I''m a python noob, so any advice on where to put the .py''s would be great! > thanksRegular python install procedure is basically: # python setup.py install Which will copy python bits to the correct places> > On 02/11/06, Daniel P. Berrange <berrange@redhat.com> wrote: > > > >On Thu, Nov 02, 2006 at 11:15:20AM +0000, axb wrote: > >> Greetings! > >> > >> I''ve been trying to get virt-manager running on AMD64 Ubuntu 6.10, both > >> virt-manager-0.2.5 and libvirt-0.1.8 compile and install successfully > >> but I cant run virt manager, I get some seeingly simple error: > >> > >> Traceback (most recent call last): > >> File "/usr/local/share/virt-manager/virt-manager.py", line 104, in ? > >> from virtManager.engine import vmmEngine > >> File "/usr/local/share/virt-manager/virtManager/engine.py", line 33, > >> in ? > >> from virtManager.create import vmmCreate > >> File "/usr/local/share/virt-manager/virtManager/create.py", line 25, > >> in ? > >> import virtinst > >> ImportError: No module named virtinst > > > >As well as virt-manager & libvirt, you need to install python-virtinst > >which provides a higher level API around libvirt for provisioning guest > >virtual machines. The mercurial repo is here: > > > >http://hg.et.redhat.com/virt/applications/virtinst--devel > > > >Or you can get the tar.gz from the src.rpm files in FC6. > >Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Thanks Dan, original error now gone, However I now get the following which looks like it could be a 64bitness problem, after running ''virt-manager'' I get:- Traceback (most recent call last): File "/usr/local/share/virt-manager/virt-manager.py", line 61, in ? import gtk File "/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py", line 48, in ? from gtk import _gtk File "/usr/lib/python2.5/site-packages/cairo/__init__.py", line 1, in ? from _cairo import * ImportError: /usr/lib/python2.5/site-packages/cairo/_cairo.so: undefined symbol: Py_InitModule4_64 --------- I''ve checked installed cairo libs; I have libcairo2 & libcairo2-dev, libcairo-directfb as well as python-cairo/python-cairo-dev all to no avail. Again stumped, andy.
On Thu, Nov 09, 2006 at 01:58:34PM +0000, axb wrote:> Thanks Dan, original error now gone, > However I now get the following which looks like it could be a 64bitness > problem, after running ''virt-manager'' I get:- > > Traceback (most recent call last): > File "/usr/local/share/virt-manager/virt-manager.py", line 61, in ? > import gtk > File "/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py", line > 48, in ? > from gtk import _gtk > File "/usr/lib/python2.5/site-packages/cairo/__init__.py", line 1, > in ? > from _cairo import * > ImportError: /usr/lib/python2.5/site-packages/cairo/_cairo.so: undefined > symbol: Py_InitModule4_64 > > --------- > > I''ve checked installed cairo libs; I have libcairo2 & libcairo2-dev, > libcairo-directfb as well as python-cairo/python-cairo-dev all to no > avail.Looks like your python install is fubar - that stack trace has some paths from python 2.4 and some from 2.5 While it may be source level compatible for the most part, its certainly not ABI compatible so I can''t see a GTK for python 2.4 working with a Cairo for python 2.5 Regards, Dan, -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|