Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27964

Re: sys.path in python3.3

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <nicholas.cole@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'distutils': 0.05; 'say,': 0.05; 'correct.': 0.07; 'python': 0.09; 'exist.': 0.09; 'grep': 0.09; 'logic': 0.09; 'of)': 0.09; 'received:mail- vc0-f174.google.com': 0.09; 'cc:addr:python-list': 0.10; 'aug': 0.13; 'alpha': 0.15; 'happily': 0.16; 'set,': 0.16; 'sys.path': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'variable': 0.20; 'issue.': 0.20; 'permission': 0.20; 'import': 0.21; 'file:': 0.22; 'setup,': 0.22; 'cc:2**0': 0.23; "haven't": 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'wonder': 0.27; 'message-id:@mail.gmail.com': 0.27; 'environment': 0.29; 'builds.': 0.29; 'cat': 0.29; 'clever': 0.29; 'received:209.85.220.174': 0.29; 'releases,': 0.29; "i'm": 0.29; 'worked': 0.30; 'wishes,': 0.33; 'problem': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'done': 0.34; 'adds': 0.35; 'path': 0.35; 'received:209.85.220': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'anything': 0.36; 'should': 0.36; 'too': 0.36; 'does': 0.37; 'being': 0.37; 'why': 0.37; 'python.org': 0.37; 'previous': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; '(that': 0.62; 'completing': 0.71; 'article': 0.78; 'cole': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dxdF7VTw+I0dZz8ngKHuUQHA2eStnv+RrrqRkwEcZ3o=; b=gyE/W11SgYFWYzOmnAYp7/VnU33LH+yNMehQW4BKXMn+7qurhqESG6XhV/E0iqeIBH Kib5f32FxDlJDccaP2Vzb8p4L/XMR6N07R7pl6banym/OqcL4eSRM76lVzrt/3JxGueN K6SvIMLlcXAr+zI0qpJnGneeJACI9ioBr0gAC4IqTrcpq+tHjjoDpSGjoXpOB9ujOwUL 9OjxFHaEXtUKy/qs1fGpI3MgapebKrf6g0MCpGwvpLSyECY4hhjDf3dWlNPwr6kp8IuT TT3Ju/l7lquUujFMmZ1Yq7RT5iDrHDfDpafyG99nwqgftGkGmxzZLMSoJpIyXC1NA5ch PPuA==
MIME-Version 1.0
In-Reply-To <nad-6395CF.16183926082012@news.gmane.org>
References <CAAu18hc7katbONp7A+-A1pyE8BYySgfaC4FHHKSD8peeQjLMbg@mail.gmail.com> <nad-80CE8C.12211526082012@news.gmane.org> <CAAu18hc8tKnuCqcoiOVyPa1yc9QgvU-BqUOe91r7G3Ye8HG9NA@mail.gmail.com> <nad-08ED69.14231326082012@ger.gmane.org> <CAAu18hducpKutb49s_8KXD-16GamACF+E0TT1+=h5rrh+J55FQ@mail.gmail.com> <nad-6395CF.16183926082012@news.gmane.org>
Date Mon, 27 Aug 2012 08:03:01 +0100
Subject Re: sys.path in python3.3
From Nicholas Cole <nicholas.cole@gmail.com>
To Ned Deily <nad@acm.org>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3861.1346050984.4697.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346050984 news.xs4all.nl 6968 [2001:888:2000:d::a6]:59559
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27964

Show key headers only | View raw


On Mon, Aug 27, 2012 at 12:18 AM, Ned Deily <nad@acm.org> wrote:
> In article
> <CAAu18hducpKutb49s_8KXD-16GamACF+E0TT1+=h5rrh+J55FQ@mail.gmail.com>,
>  Nicholas Cole <nicholas.cole@gmail.com> wrote:
>> It certainly does exist. Distutils will happily put packages into it,
>> but import won't find them.
>
> That's odd!  It works for me on 10.8 and it worked for me yesterday on
> 10.7 which I tested just after completing the python.org installer
> builds.  Perhaps there is some permission issue.  Or the path name isn't
> quite correct.  Or you have some PYTHON* environment variable set, like
> PYTHONNOUSERSITE?

I'm also on 10.8.

NPSC: nicholas$ set | grep PYTHON
NPSC: nicholas$

The only user configuration I've done is to create the following
configuration file:

NPSC:~ nicholas$ cat .pydistutils.cfg
[install]
install_lib = ~/Library/Python/$py_version_short/site-packages
install_scripts = ~/bin

I should say, this has been a problem for all of the python3.3 alpha
and beta releases, on previous releases of OS X.

I can't understand why it works on your setup, though, because I
haven't done anything at all (that I can think of) that ought of
affect it.  I wonder if the logic that adds the directory to sys.path
is being too clever for everyone's good?

Best wishes,

N.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sys.path in python3.3 Nicholas Cole <nicholas.cole@gmail.com> - 2012-08-27 08:03 +0100

csiph-web