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


Groups > comp.lang.python > #25848

Re: python package confusion

Date 2012-07-23 12:02 +0100
From Lipska the Kat <lipska@lipskathekat.com>
Newsgroups comp.lang.python
Subject Re: python package confusion
References <BsCdnb3NJ_bOvJDNnZ2dnUVZ7rmdnZ2d@bt.com> <mailman.2458.1343039009.4697.python-list@python.org>
Message-ID <et6dnWSlfuqzspDNnZ2dnUVZ7sudnZ2d@bt.com> (permalink)

Show all headers | View raw


On 23/07/12 11:22, Devin Jeanpierre wrote:
> 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).

forgot to export it <stupid> <stupid> <stupid>

> Also adding . to the import search path is probably a bad diea.

I removed it

>> 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.

See grovelling apology in other reply

>
>> I also have an empty file __init__.py in the mods directory
>
> This only matters if you want to "import mods".

huh .. OK, I'll read again

Thanks for taking the time to reply
It all works now

Lipska <slinks away to hide>

-- 
Lipska the Kat: Troll hunter, Sandbox destroyer
and Farscape dreamer of Aeryn Sun.

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


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