Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25846
| References | <BsCdnb3NJ_bOvJDNnZ2dnUVZ7rmdnZ2d@bt.com> |
|---|---|
| From | Devin Jeanpierre <jeanpierreda@gmail.com> |
| Date | 2012-07-23 06:22 -0400 |
| Subject | Re: python package confusion |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2458.1343039009.4697.python-list@python.org> (permalink) |
On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat <lipska@lipskathekat.com> wrote: > The PYTHONPATH ev is set to /home/lipska/python/dev/mods:. > in .bashrc Did you export it? Show us your .bashrc, or the relevant line in it exactly. (And make sure that it isn't defined multiple times). Also adding . to the import search path is probably a bad diea. > lipska@ubuntu:~/python/dev/mods$ test.py > Traceback (most recent call last): > File "./test.py", line 5, in <module> > fib(1000) > NameError: name 'fib' is not defined Neither of the files you described in your email message contain the line "fib(1000)", so you pasted the wrong files. > I also have an empty file __init__.py in the mods directory This only matters if you want to "import mods". -- Devin
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python package confusion Lipska the Kat <lipska@lipskathekat.com> - 2012-07-23 11:02 +0100
Re: python package confusion Dave Angel <d@davea.name> - 2012-07-23 06:19 -0400
Re: python package confusion Lipska the Kat <lipska@lipskathekat.com> - 2012-07-23 11:54 +0100
Re: python package confusion Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-23 06:22 -0400
Re: python package confusion Lipska the Kat <lipska@lipskathekat.com> - 2012-07-23 12:02 +0100
Re: python package confusion David <bouncingcats@gmail.com> - 2012-07-23 21:16 +1000
Re: python package confusion Lipska the Kat <lipska@lipskathekat.com> - 2012-07-23 12:43 +0100
Re: python package confusion Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-24 05:38 +0000
Re: python package confusion Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-07-24 03:49 -0400
csiph-web