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

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


  • To: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.