[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] ImportError: No module named virtinst with virtinst-0.600.1



On 02/03/2013 11:15 AM, Nilambari Joshi wrote:
> Hi Cole
> 
> Here is the output of required commands
> 
> root 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 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 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]