python package confusion

Lipska the Kat lipska at
Mon Jul 23 13:02:03 CEST 2012

On 23/07/12 11:22, Devin Jeanpierre wrote:
> On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat<lipska at>  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 at ubuntu:~/python/dev/mods$
>> Traceback (most recent call last):
>>    File "./", 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 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.

More information about the Python-list mailing list