Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39228 > unrolled thread
| Started by | matt.doolittle33@gmail.com |
|---|---|
| First post | 2013-02-19 07:23 -0800 |
| Last post | 2013-02-19 08:17 -0800 |
| Articles | 9 on this page of 29 — 7 participants |
Back to article view | Back to comp.lang.python
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
Page 2 of 2 — ← Prev page 1 [2]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 08:57 -0800 |
| Message-ID | <mailman.2049.1361293621.2939.python-list@python.org> |
| In reply to | #39250 |
> What is PYTHONPATH actually set to? You can find out by running python > > interactively, then i dont know. how do i run pythoin interactively?
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 09:10 -0800 |
| Message-ID | <a2186ea8-07c3-488c-a066-46f31b818d72@googlegroups.com> |
| In reply to | #39256 |
Does anyone know why i keep having these double posts? please excuse them; i am a super newbie to this forum (and python obviously). Thanks
[toc] | [prev] | [next] | [standalone]
| From | Lele Gaifax <lele@metapensiero.it> |
|---|---|
| Date | 2013-02-19 19:17 +0100 |
| Subject | Double posts (was Re: Python module import failed error) |
| Message-ID | <mailman.2056.1361297890.2939.python-list@python.org> |
| In reply to | #39257 |
matt.doolittle33@gmail.com writes: > Does anyone know why i keep having these double posts? That's because your posts carry the following headers: To: python-list@python.org Cc: python-list@python.org or these (from a previous message): To: comp.lang.python@googlegroups.com Cc: python-list@python.org So it seems you are answering using Google Groups, *and* putting “python-list@python.org” in the CC field. This “forum” has three heads, one mirroring the others: whatever you send to one of the addresses is automatically “copied” on the other sides, and viceversa; see also http://wiki.python.org/moin/GoogleGroupsPython So, simply avoid adding an explicit CC field when you send your message/reply. Hope this helps, bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 10:31 -0800 |
| Subject | Re: Double posts (was Re: Python module import failed error) |
| Message-ID | <cc55da84-c7f2-4e23-9c2b-86997add7834@googlegroups.com> |
| In reply to | #39267 |
Thanks Lele.
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 09:10 -0800 |
| Message-ID | <mailman.2050.1361294335.2939.python-list@python.org> |
| In reply to | #39256 |
Does anyone know why i keep having these double posts? please excuse them; i am a super newbie to this forum (and python obviously). Thanks
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 09:20 -0800 |
| Message-ID | <d03d5385-f2ab-400d-b0b2-cc3aa4de04e2@googlegroups.com> |
| In reply to | #39250 |
> > What is PYTHONPATH actually set to? OK so i ran python and then : import sys sys.path bash returned: ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] so the paths i have been adding are there. should i be adding the python file names in the "bin" directory as well?
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 09:20 -0800 |
| Message-ID | <mailman.2051.1361294431.2939.python-list@python.org> |
| In reply to | #39250 |
> > What is PYTHONPATH actually set to? OK so i ran python and then : import sys sys.path bash returned: ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode'] so the paths i have been adding are there. should i be adding the python file names in the "bin" directory as well?
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 08:28 -0800 |
| Message-ID | <mailman.2043.1361291329.2939.python-list@python.org> |
| In reply to | #39245 |
My guess would be /home/matt/bin - note the leading slash.
>
>
>
> ChrisA
correct. and in the home directory i run export PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the wrong command?
[toc] | [prev] | [next] | [standalone]
| From | matt.doolittle33@gmail.com |
|---|---|
| Date | 2013-02-19 08:17 -0800 |
| Message-ID | <mailman.2041.1361291108.2939.python-list@python.org> |
| In reply to | #39230 |
>
> 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?
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.python
csiph-web