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


Groups > comp.lang.python > #39244

Re: Python module import failed error

Newsgroups comp.lang.python
Date 2013-02-19 08:17 -0800
References <3c0e501e-cc5b-434e-b65b-0d4ffce82af9@googlegroups.com> <mailman.2029.1361287750.2939.python-list@python.org>
Subject Re: Python module import failed error
From matt.doolittle33@gmail.com
Message-ID <mailman.2041.1361291108.2939.python-list@python.org> (permalink)

Show all headers | 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