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


Groups > comp.lang.python > #39244

Re: Python module import failed error

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <matt.doolittle33@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; 'subject:Python': 0.05; 'bash': 0.07; 'thats': 0.07; 'python': 0.09; '(it': 0.09; 'path.': 0.09; 'subject:module': 0.09; 'to:addr:comp.lang.python': 0.09; 'worked.': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'skip:p 40': 0.15; 'subject:failed': 0.16; 'subject:import': 0.16; 'directory.': 0.17; 'obviously': 0.18; 'variable': 0.20; 'sort': 0.21; 'import': 0.21; 'work,': 0.22; 'cc:2**0': 0.23; "haven't": 0.23; 'cc:no real name:2**0': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'looks': 0.26; 'then.': 0.27; "doesn't": 0.28; "they'll": 0.29; 'probably': 0.29; 'folder': 0.30; 'code': 0.31; 'file': 0.32; 'impression': 0.33; 'ubuntu': 0.33; 'received:google.com': 0.34; 'path': 0.35; 'there': 0.35; 'add': 0.36; 'modules': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'mean': 0.38; 'some': 0.38; 'nothing': 0.38; 'where': 0.40; 'from:no real name:2**0': 0.60; 'skip:u 10': 0.60; 'real': 0.61; 'back': 0.62; 'export': 0.62; 'skip:n 10': 0.63; 'home': 0.66
X-Received by 10.49.1.70 with SMTP id 6mr1252446qek.27.1361290631314; Tue, 19 Feb 2013 08:17:11 -0800 (PST)
Newsgroups comp.lang.python
Date Tue, 19 Feb 2013 08:17:11 -0800 (PST)
In-Reply-To <mailman.2029.1361287750.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=74.76.226.247; posting-account=aUyV1AoAAADQHesJeGDOvoY6ETPzeVsR
References <3c0e501e-cc5b-434e-b65b-0d4ffce82af9@googlegroups.com> <mailman.2029.1361287750.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 74.76.226.247
MIME-Version 1.0
Subject Re: Python module import failed error
From matt.doolittle33@gmail.com
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Message-ID <mailman.2041.1361291108.2939.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361291108 news.xs4all.nl 6906 [2001:888:2000:d::a6]:40417
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39244

Show key headers only | View raw


> 
> What do you mean by that path? That doesn't look like an Ubuntu/Linux
> 
> path name. Pull up a terminal (Ctrl-Alt-T should do that for you,
> 
> though I haven't used an Ubuntu since 10.10) and see if you can 'ls'
> 
> the path - once you have the real path name (it might start with
> 
> /home/your_user_name/ for instance), go back to the commands you found
> 
> on the web and try them - they'll probably work, then.
> 
thats the file path.  the directory "bin" in my home directory.  in bash it obviously looks like this  "~/bin" using the file system folder the path is home/Home/bin.  i have tried commands like, export PYTHONPATH=${PYTHONPATH}:/users/matt/bin or home/matt/bin or Home/home/bin and nothing has worked.
from what ive found on the web the Python import process is notoriously underspecified, notwithstanding i was under the impression that PYTHONPATH is a global variable that i can add directories to at anytime to tell Python where to look, without having to add some sort of code to every program.  is this impression incorrect?  is there some code i need to add to the Python program call the modules in the "bin" dir?  

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


Thread

Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 07:23 -0800
  Re: Python module import failed error Chris Angelico <rosuav@gmail.com> - 2013-02-20 02:29 +1100
    Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:17 -0800
      Re: Python module import failed error Chris Angelico <rosuav@gmail.com> - 2013-02-20 03:25 +1100
        Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:28 -0800
          Re: Python module import failed error Chris Angelico <rosuav@gmail.com> - 2013-02-20 03:39 +1100
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:51 -0800
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:51 -0800
          Re: Python module import failed error Thomas Calmant <thomas.calmant@gmail.com> - 2013-02-19 17:44 +0100
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:54 -0800
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:54 -0800
          Re: Python module import failed error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-02-19 16:47 +0000
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:57 -0800
              Re: Python module import failed error Dave Angel <davea@davea.name> - 2013-02-19 12:20 -0500
                Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:45 -0800
                Re: Python module import failed error Chris Angelico <rosuav@gmail.com> - 2013-02-20 08:46 +1100
                Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:45 -0800
              Re: Python module import failed error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-02-19 17:22 +0000
                Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 13:24 -0800
                Re: Python module import failed error Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-19 19:36 -0500
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:57 -0800
              Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:10 -0800
                Double posts (was Re: Python module import failed error) Lele Gaifax <lele@metapensiero.it> - 2013-02-19 19:17 +0100
                Re: Double posts (was Re: Python module import failed error) matt.doolittle33@gmail.com - 2013-02-19 10:31 -0800
              Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:10 -0800
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:20 -0800
            Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 09:20 -0800
        Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:28 -0800
    Re: Python module import failed error matt.doolittle33@gmail.com - 2013-02-19 08:17 -0800

csiph-web