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

[Xen-users] Re: [Xen-devel] Re: xen-unstable: ImportError: No module nam

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: [Xen-users] Re: [Xen-devel] Re: xen-unstable: ImportError: No module named xen.xm
From: chris <tknchris@xxxxxxxxx>
Date: Thu, 20 Jan 2011 11:49:51 -0500
Cc: Xen-Devel List <xen-devel@xxxxxxxxxxxxxxxxxxx>, Xen-Users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 20 Jan 2011 08:53:40 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eYKr8XsrSE+UoxiCEkNjUjy/8moMfQKkBHmw+M0cvgw=; b=LigsukukPVNabqz3AjeJPjIkTkFBBVWG8NBtwsYntktFSp/4LXTDLrzAIYwqhKcvA4 2jaRmbQMUzc2H9js6L48jrU/5K26G8zbAJkPOTyGDVLun8OfmZ2RUme50rlxe0XJYZaS mrK28M5taqzBxGKF580lHa3V29Ywbeve/AJxk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QIieF01MYn62AzoY9ZVBJRiapAgHagtbyQmcIWDNY8NgLt/t+6jdnXpVjunOdK0t03 QHGUMcQJ3qOrmh7kU/TD48vqGF1VPqY7vgvPoo7TpMTQzi8YaBGAr6+nmCcxtZnYS1R3 XV7UmhuVW55PjOJEOTEXgJGgtFXLMm6bOGYYQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1295512732.14981.4699.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimCA_T1QsfCVfABtW8776Mkg3toBtmHYHgea56=@xxxxxxxxxxxxxx> <AANLkTin0tfdaXr0MaHpoA9oPM+XQyH34m2RNXOfi_m2N@xxxxxxxxxxxxxx> <1295512732.14981.4699.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Jan 20, 2011 at 3:38 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> On Wed, 2011-01-19 at 22:34 +0000, chris wrote:
>> On Wed, Jan 19, 2011 at 2:29 PM, chris <tknchris@xxxxxxxxx> wrote:
>> > I have pulled the latest from xen-unstable on a new machine, I run
>> > make world and make install and after rebooting into xen, when i run
>> > xm list or anything else i get:
>> >
>> > # 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
>> >
>> > I also tried going into the tools dir and make install, because i read
>> > that somewhere on google.
>> >
>> > I don't get any errors when compiling or installing so I don't know
>> > where to go from here?
>> >
>> > - chris
>> >
>>
>> I just tried this again after pulling everything down again and
>> recompiling. Is something broken?
>
> Nothing currently known.
>
> Which host OS are you running?
>
> Do:
> $ python
>>>> import sys
>>>> print sys.path
>
> This should tell you the python path which is where python is looking
> for stuff. The install process should have dropped xen/xm/main.py
> somewhere on the system, the build log or "find" should tell you where.
> Do they correspond?
>
> Ian.
>
>

This is debian squeeze. I'm guessing something just changed in the
python package?

# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', '/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/local/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6']


Any idea where to go from here? I don't know a whole lot about python

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