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


Groups > comp.lang.python > #91135

Re: PYTHONPATH when calling from ipython

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'bash': 0.07; 'loaded,': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:python-list': 0.10; '>that': 0.16; 'all?': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:when': 0.16; 'laura': 0.18; 'shell': 0.18; 'variable': 0.20; 'cc:addr:python.org': 0.21; 'cc:2**1': 0.22; 'interpret': 0.22; 'problem:': 0.22; '2015': 0.23; 'sat,': 0.23; 'header:In- Reply-To:1': 0.24; '+0200,': 0.27; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'getting': 0.33; 'problem': 0.33; 'skip:. 20': 0.35; 'skip:o 20': 0.35; 'but': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'files': 0.38; 'things': 0.39; 'whatever': 0.39; 'your': 0.60; 'here.': 0.61; 'header:Message-Id:1': 0.62; 'export': 0.63; 'our': 0.64; 'received:89': 0.80; 'cecil': 0.84; 'url:cecilwesterhof': 0.84; 'westerhof': 0.84; 'do:': 0.91
To Cecil Westerhof <Cecil@decebal.nl>
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: PYTHONPATH when calling from ipython
In-Reply-To Message from Cecil Westerhof <Cecil@decebal.nl> of "Sat, 23 May 2015 16:08:00 +0200." <87egm7petb.fsf@Equus.decebal.nl>
References <874mn5qjc8.fsf@Equus.decebal.nl> <mailman.268.1432372378.17265.python-list@python.org> <87iobjpnt4.fsf@Equus.decebal.nl> <mailman.275.1432387517.17265.python-list@python.org><87egm7petb.fsf@Equus.decebal.nl>
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <3787.1432393216.1@fido>
Content-Transfer-Encoding quoted-printable
Date Sat, 23 May 2015 17:00:16 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Sat, 23 May 2015 17:00:19 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.279.1432393226.17265.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1432393226 news.xs4all.nl 2845 [2001:888:2000:d::a6]:41796
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91135

Show key headers only | View raw


In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof writes:
>That is not the problem:
>    os.environ['PYTHONPATH']
>gives:
>    .:/home/cecil/Python'
>
>As I interpret it is that the very handy shell variable is not used in ipython.
>
>-- 
>Cecil Westerhof
>Senior Software Engineer
>LinkedIn: http://www.linkedin.com/in/cecilwesterhof

It's used around here.  But we all have to do:
export PYTHONPATH=${PYTHONPATH}:/usr/local/ipython/lib/python
in our .bashrc files -- or whatever you do if you don't use bash
to get things to work with ipython.

Is your problem that you are not getting one particular directory
loaded, or can you not find any modules at all?

Laura

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


Thread

PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-22 07:20 +0200
  Re: PYTHONPATH when calling from ipython Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-23 10:12 +0100
    Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 12:53 +0200
      Re: PYTHONPATH when calling from ipython Peter Otten <__peter__@web.de> - 2015-05-23 15:25 +0200
        Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 16:08 +0200
          Re: PYTHONPATH when calling from ipython Laura Creighton <lac@openend.se> - 2015-05-23 17:00 +0200
            Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 17:24 +0200
          Re: PYTHONPATH when calling from ipython Peter Otten <__peter__@web.de> - 2015-05-23 18:09 +0200
            Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 19:30 +0200
              Re: PYTHONPATH when calling from ipython Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-23 19:13 +0100
                Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 21:47 +0200
              Re: PYTHONPATH when calling from ipython Cecil Westerhof <Cecil@decebal.nl> - 2015-05-23 20:14 +0200

csiph-web