WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] No module named xen.xm

To: cheryl mendota <cherylmendota123@xxxxxxxxx>
Subject: RE: [Xen-devel] No module named xen.xm
From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Date: Wed, 21 Apr 2010 04:29:08 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 20 Apr 2010 13:30:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <q2w29871f3a1004201154o7e151b4bz11806f78786790f9@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <z2z29871f3a1004192215k84477f9ds8102aaa990e5f57@xxxxxxxxxxxxxx> <BC00F5384FCFC9499AF06F92E8B78A9E026FB98508@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <q2w29871f3a1004201154o7e151b4bz11806f78786790f9@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acrguv1ukkemua0WQGeq7IFlQrHZYwACsSGw
Thread-topic: [Xen-devel] No module named xen.xm
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


From: cheryl mendota [mailto:cherylmendota123@xxxxxxxxx]
Sent: Wednesday, April 21, 2010 2:55 AM
To: Liu, Jinsong
Subject: Re: [Xen-devel] No module named xen.xm

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


From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of cheryl mendota
Sent: Tuesday, April 20, 2010 1:15 PM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] No module named xen.xm

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
<Prev in Thread] Current Thread [Next in Thread>