All of lore.kernel.org
 help / color / mirror / Atom feed
* No module named xen.xm
@ 2010-04-20  5:15 cheryl mendota
  2010-04-20 15:04 ` Liu, Jinsong
  0 siblings, 1 reply; 4+ messages in thread
From: cheryl mendota @ 2010-04-20  5:15 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 398 bytes --]

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!

[-- Attachment #1.2: Type: text/html, Size: 460 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: No module named xen.xm
  2010-04-20  5:15 No module named xen.xm cheryl mendota
@ 2010-04-20 15:04 ` Liu, Jinsong
       [not found]   ` <q2w29871f3a1004201154o7e151b4bz11806f78786790f9@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Jinsong @ 2010-04-20 15:04 UTC (permalink / raw)
  To: cheryl mendota, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1142 bytes --]

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@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of cheryl mendota
Sent: Tuesday, April 20, 2010 1:15 PM
To: xen-devel@lists.xensource.com
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!

[-- Attachment #1.2: Type: text/html, Size: 3168 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: No module named xen.xm
       [not found]   ` <q2w29871f3a1004201154o7e151b4bz11806f78786790f9@mail.gmail.com>
@ 2010-04-20 20:29     ` Liu, Jinsong
  2010-10-12 20:41       ` Priya
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Jinsong @ 2010-04-20 20:29 UTC (permalink / raw)
  To: cheryl mendota; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3331 bytes --]

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@gmail.com]
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@intel.com<mailto:jinsong.liu@intel.com>> 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@lists.xensource.com<mailto:xen-devel-bounces@lists.xensource.com> [mailto:xen-devel-bounces@lists.xensource.com<mailto:xen-devel-bounces@lists.xensource.com>] On Behalf Of cheryl mendota
Sent: Tuesday, April 20, 2010 1:15 PM
To: xen-devel@lists.xensource.com<mailto:xen-devel@lists.xensource.com>
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!


[-- Attachment #1.2: Type: text/html, Size: 8037 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: No module named xen.xm
  2010-04-20 20:29     ` Liu, Jinsong
@ 2010-10-12 20:41       ` Priya
  0 siblings, 0 replies; 4+ messages in thread
From: Priya @ 2010-10-12 20:41 UTC (permalink / raw)
  To: Liu, Jinsong; +Cc: cheryl mendota, xen-devel

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@intel.com> 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@gmail.com]
> 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@intel.com> 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@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of cheryl mendota
>> Sent: Tuesday, April 20, 2010 1:15 PM
>> To: xen-devel@lists.xensource.com
>> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>



--
Priya Bhat

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-12 20:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20  5:15 No module named xen.xm cheryl mendota
2010-04-20 15:04 ` Liu, Jinsong
     [not found]   ` <q2w29871f3a1004201154o7e151b4bz11806f78786790f9@mail.gmail.com>
2010-04-20 20:29     ` Liu, Jinsong
2010-10-12 20:41       ` Priya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.