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: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Subject: Re: [Xen-devel] No module named xen.xm
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Tue, 12 Oct 2010 16:41:50 -0400
Cc: cheryl mendota <cherylmendota123@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 12 Oct 2010 13:42:59 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=31T5XjGEEz1VQ1LXPM9o5TQfsvwoAfFgCBIo2TDKa2s=; b=TXyHjeDVxUYo9iZkc+6DQiejZdHhl7uzlXStGdz+fClysWB0iuSZCqER1oV2wgerkJ QbCoLN2wh10HfNDPQKBmC6Hir4TN9ROs8LF0nmjoXEIZupkoQIQoe4tCs9yb2knvycOe pURlN6jKMv9WkySnTe6Z3uNP7+v+1nYemkr4Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=mWKzFy1bZpMyfpgmmouKtcXyDVRS4XPeLq7JkE0iZvzMLYMmQoh9SPDi9NFQ/bPT/+ yAWyd5A9dKhcOXzFd/0PTnyq0EgHxsmvsqU7pli/09QMY7v13J4Eo8Rt+Hjlg/kUpgCo f5nTwv/g+EYIOgD+SqbjpGT4NDuOv7NnJTtoM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BC00F5384FCFC9499AF06F92E8B78A9E026FB98542@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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> <BC00F5384FCFC9499AF06F92E8B78A9E026FB98542@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi cheryl,

I just faced the same issue and resolved it by running the make files
on xen again. Basically what I did was:

(1) boot into the Xen domain-0 using the correct grub option. (Once
you have signed in you notice that "xm <anything>" fails with the
error message "No module named xen.xm")
(2) cd /usr/src/xen-4.0.1
(3) make world
(4) make install

I am pretty sure that there is a more efficient way of solving this
problem, but this worked for me for now!

Cheers

On Tue, Apr 20, 2010 at 4:29 PM, Liu, Jinsong <jinsong.liu@xxxxxxxxx> wrote:
>
> 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
>



--
Priya Bhat

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] No module named xen.xm, Priya <=