All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@eu.citrix.com>
To: chris <tknchris@gmail.com>
Cc: Xen-Devel List <xen-devel@lists.xensource.com>,
	Xen-Users List <xen-users@lists.xensource.com>
Subject: Re: [Xen-devel] Re: xen-unstable: ImportError: No module named xen.xm
Date: Thu, 20 Jan 2011 17:38:23 +0000	[thread overview]
Message-ID: <1295545103.14780.78.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <AANLkTi=YL=zC+aozZAOgLiw0n8wFiirEXQp9VJtteAkp@mail.gmail.com>

> >> ['', '/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']

vs.

> /usr/lib/python2.6/site-packages/xen/xm/main.py

So the Xen python bits are not installed to a path which the python
interpreter is searching.

Xen relies on the python distutils library to build and install its
python bits and makes no specific reference to site-packages in its
makefiles (that I can find).

The Debian python policy
(http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html) suggests that this change of location is deliberate from python 2.6 onwards. However /usr/lib/python2.6/distutils/command/install.py still makes reference to site-packages which is no doubt where it is coming from.

At this point my Debian python-fu is running low but I think you have
found a bug in Debian and should report it to them as such.

I also suspect that the fact that distutils is installing
non-packaged/locally-built python bits in /usr/lib/python2.6 rather
than /usr/local/lib/python2.6 is also a bug in the python system.

Ian.

  reply	other threads:[~2011-01-20 17:38 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-07  0:07 Xen build - Debian vs Redhat layout patch options Bruce Edge
2010-07-07 11:19 ` Stefano Stabellini
2010-09-13 23:53   ` [patch] " Bruce Edge
2010-09-14  0:23     ` Mike Viau
2010-09-14  6:45     ` Sander Eikelenboom
2010-09-14 14:18       ` Bruce Edge
2010-09-14 14:31     ` Olaf Hering
2010-09-14 17:05     ` Ian Jackson
2010-09-14 17:13       ` Bruce Edge
2010-09-14 18:56       ` Bruce Edge
2010-09-15 10:03         ` Ian Jackson
2010-09-15 16:06           ` Bruce Edge
2010-09-15 16:16             ` Olaf Hering
2010-09-16 16:29             ` Ian Jackson
2010-09-16 18:52               ` Bruce Edge
2010-09-16 20:45                 ` Olaf Hering
2010-09-16 20:56                   ` Bruce Edge
2010-09-16 20:59                     ` Olaf Hering
2010-09-16 21:02                       ` Bruce Edge
2010-09-17 16:11                         ` Ian Jackson
2010-09-17 17:05                           ` Bruce Edge
2010-09-17 17:52                             ` Ian Jackson
2010-09-17 18:13                               ` Bruce Edge
2010-09-16 20:24               ` Dan Magenheimer
2010-09-16 20:34                 ` Dan Magenheimer
2010-09-17 15:01               ` [patch] Xen build - Debian vs Redhat layout patch options [and 1 more messages] Ian Jackson
     [not found]   ` <AANLkTim48T7Y3Pq0_nS1zZ5jWH_kXrS8JceWLf-yUOM6@mail.gmail.com>
2011-01-04 21:09     ` Xen build - Debian vs Redhat layout patch options user virtual
2011-01-06 15:02       ` Stefano Stabellini
2011-01-11 17:37       ` Ian Jackson
2011-01-20 13:45         ` user virtual
     [not found]           ` <AANLkTimCA_T1QsfCVfABtW8776Mkg3toBtmHYHgea56=@mail.gmail.com>
2011-01-19 22:34             ` xen-unstable: ImportError: No module named xen.xm chris
2011-01-20  8:38               ` Ian Campbell
2011-01-20 16:49                 ` [Xen-devel] " chris
2011-01-20 16:54                   ` Ian Campbell
2011-01-20 17:23                     ` chris
2011-01-20 17:38                       ` Ian Campbell [this message]
2011-01-21 18:20                         ` [Xen-users] " Mike Viau
2011-01-21 19:16                           ` Ian Jackson
2011-01-26 14:51                           ` Re: [Xen-devel] " Ian Jackson
2011-01-26 17:32                             ` Mike Viau
     [not found]                 ` <m2n.s.1PfxnK-153952@chiark.greenend.org.uk>
2011-01-20 18:19                   ` Ian Jackson
2011-01-20 18:35                     ` chris
2011-01-21 18:59                       ` [Xen-devel] Re: xen-unstable: ImportError: No module named xen.xm [and 1 more messages] Ian Jackson
2011-01-21 15:30           ` Xen build - Debian vs Redhat layout patch options user virtual
2011-01-21 17:28             ` Bruce Edge
2011-01-21 18:42               ` Ian Jackson
2011-07-13 13:41                 ` User Virtual
2011-01-21 17:29             ` Stefano Stabellini
2011-01-21 18:40               ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1295545103.14780.78.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@eu.citrix.com \
    --cc=tknchris@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.