Cheryl,
Would you please
1. print out /usr/sbin/xm script to us?
2. try following command:
$ cd
/usr/lib64/python2.6/site-packages/xen/xm
$ python main.py list
does it work as normal 'xm list'
command?
3. check if there are __init__.py (usually a null file)
under both ./xen and ./xm subdir?
4. check which main.py has latest
timestamp:
1).
/usr/lib64/python2.6/site-packages/xen/xm/main.py (normally this is latest
main.py)
2).
/usr/lib64/python/xen/xm/main.py (if it does
exist)
5. for ./lib64/python2.4/site-packages/xen/xm/main.py,
does it define 'main()' func (usually at last
line)?
Thanks,
Jinsong
Hi Jinsong,
Yes, xm is on my sys.path. But still, I get the
module not found error
$ python Python 2.6.2 (release26-maint, Apr 19
2009, 01:58:18) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits"
or "license" for more information. >>> import sys >>>
sys.path ['', '/usr/lib64/python2.6/site-packages/xen',
'/usr/lib64/python2.6/site-packages/xen/xm', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0',
'/var/lib/python-support/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages'] >>> exit() $ sudo xm
list Traceback (most recent call last): File "/usr/sbin/xm", line
5, in <module> from xen.xm import
main ImportError: No module named xen.xm $ ls
/usr/lib64/python2.6/site-packages/xen/xm/main.py /usr/lib64/python2.6/site-packages/xen/xm/main.py
On Tue, Apr 20, 2010 at 10:04 AM, Liu, Jinsong <jinsong.liu@xxxxxxxxx>
wrote:
Seems Ubuntu
meet issues when install xen-3.4.2 ? I'm not sure.
Would you
please run
$python
>>>
import sys >>> print sys.path
to get
your path info?
Your should
get path info like '/usr/lib64/python2.4/site-packages' indicate where
your xen/xm installed, and check if your have main.py at
/usr/lib64/python2.4/site-packages/xen/xm.
What's more,
you can manually install .py files to related path, it takes same
effect.
Regards,
Jinsong
Hi, I am trying to install Xen on my system. Im running Ubuntu
9.04. I installed xen-3.4.2 on my laptop. I did a make world, and then
make install But some control tools are not accessible. $ sudo
xm list Traceback (most recent call last): File "/usr/sbin/xm",
line 5, in <module> from xen.xm import
main ImportError: No module named xen.xm Any help would be greatly
appreciated.. Thanks!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|