Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/2 v2] python: fix packaging dependencies on minimal systems
Date: Mon, 26 Mar 2012 12:06:47 +0100	[thread overview]
Message-ID: <1332760007.28414.106.camel@ted> (raw)
In-Reply-To: <1332530896-27466-2-git-send-email-gary@mlbassoc.com>

On Fri, 2012-03-23 at 13:28 -0600, Gary Thomas wrote:
> If you install the top-level python package only on a minimal
> system which has no other python packages installed then python
> is not functional at all.  Without any extra packages installed
> this error is seen:
>   # python
>   Traceback (most recent call last):
>     File "/usr/lib/python2.7/site.py", line 64, in <module>
>       import traceback
>   ImportError: No module named traceback
> 
> Installing python-lang only partly fixes the problem as this
> error still exists:
>   # python
>   Traceback (most recent call last):
>     File "/usr/lib/python2.7/site.py", line 569, in <module>
>       main()
>     File "/usr/lib/python2.7/site.py", line 551, in main
>       known_paths = addusersitepackages(known_paths)
>     File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages
>       user_site = getusersitepackages()
>     File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages
>       user_base = getuserbase() # this will also set USER_BASE
>     File "/usr/lib/python2.7/site.py", line 243, in getuserbase
>       USER_BASE = get_config_var('userbase')
>     File "/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var
>       return get_config_vars().get(name)
>     File "/usr/lib/python2.7/sysconfig.py", line 400, in get_config_vars
>       import re
>   ImportError: No module named re
> 
> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
> ---
>  .../python/python-2.7-manifest.inc                 |    2 +-
>  meta/recipes-devtools/python/python_2.7.2.bb       |    2 +-
>  scripts/contrib/python/generate-manifest-2.7.py    |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

Merged to master, thanks.

Richard




      reply	other threads:[~2012-03-26 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 19:28 [PATCH 1/2 v2] python: remove target dependency Gary Thomas
2012-03-23 19:28 ` [PATCH 2/2 v2] python: fix packaging dependencies on minimal systems Gary Thomas
2012-03-26 11:06   ` Richard Purdie [this message]

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=1332760007.28414.106.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox