[virt-tools-list] ImportError: No module named virtinst with virtinst-0.600.1
Nilambari Joshi
nilambarijoshi at googlemail.com
Mon Feb 4 06:29:07 UTC 2013
Thanks Cole.
With the suggested options (python setup.py install --prefix /usr
--install-lib /usr/lib/python2.7/dist-packages), the error (No module
named virtinst) went away.
Thanks once again..
Regards,
Nilambari Joshi.
On Mon, Feb 4, 2013 at 12:18 AM, Cole Robinson <crobinso at redhat.com> wrote:
> On 02/03/2013 11:15 AM, Nilambari Joshi wrote:
> > Hi Cole
> >
> > Here is the output of required commands
> >
> > root at mypc:/home/nilambari/virtinst-0.600.1#*ls
> /usr/lib/python2.7/site-packages*
> > virtconv virtinst virtinst-0.600.1-py2.7.egg-info
> >
> > root at mypc:/home/nilambari/virtinst-0.600.1#*python -c 'import sys; print
> > sys.path'*
> > ['', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7',
> > '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
> > '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> > '/usr/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> > '/usr/lib/python2.7/dist-packages/PIL',
> > '/usr/lib/python2.7/dist-packages/gst-0.10',
> > '/usr/lib/python2.7/dist-packages/gtk-2.0',
> > '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-client',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
> >
> > root at mypc:/home/nilambari/virtinst-0.600.1#
> > *PYTHONPATH="/usr/lib/python2.7/site-packages" python -c 'import sys;
> print
> > sys.path; import virtinst; print virtinst'*
> > ['', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7',
> > '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
> > '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> > '/usr/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> > '/usr/lib/python2.7/dist-packages/PIL',
> > '/usr/lib/python2.7/dist-packages/gst-0.10',
> > '/usr/lib/python2.7/dist-packages/gtk-2.0',
> > '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-client',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
> > '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
> > <module 'virtinst' from 'virtinst/__init__.py'>
> >
>
> I think you need to do
>
> python setup.py install --prefix /usr --install-lib
> /usr/lib/python2.7/dist-packages
>
> And it will just work. But that last command shows you are importing
> virtinst
> fine, so not sure why running virt-install was failing.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130204/db6b2339/attachment.htm>
More information about the virt-tools-list
mailing list