Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'nameerror:': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'files.': 0.13; '"import': 0.16; '__init__.py': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'import': 0.21; 'defined': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; '(most': 0.27; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'received:209.85.213.174': 0.29; 'received:mail-yx0-f174.google.com': 0.29; 'probably': 0.29; '(and': 0.32; 'file': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'described': 0.35; 'path': 0.35; 'skip:l 30': 0.35; 'received:209.85': 0.35; 'bad': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'sure': 0.38; 'header:Received:5': 0.40; 'your': 0.60; 'export': 0.62; 'show': 0.63; 'jul': 0.65; 'kat': 0.91; 'skip:/ 30': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=3W8+bgtj5BoCNp6PT28jH7ogX4Pp0Bo5sVPgWSpWKCw=; b=mB6r7reXCIDMMwFhHXJGPZvj5HjonNJHFQj6J7CmA3drJmlDXKCOz4fl7/sj8lbXt3 BsegUC8VhXCwrnzOUKy6yf0k+YlL+AQ2/7N9M+yzPs+VxXSj8F2EWMlwKMlwdUhO+Gww 9Q3ZmzpUmt1BWsTor8FKB6gVsSNC7Oq7Ggj7JcbzlkSNbYYam6GNzPnUYf6YJ5s4tvIJ l19bMv/81Q4Yo5YSBNxUpFmUP2dgHeQTj3eWmRkmxzHhSTHi/By9Tn9N6P8AHC4wN4Jf L+ajpq/26dN87Pi2r3OeyC3U9CeQk/PY8YwV8/Zj869h/nE2EYSS01xKHH06UZIJ9YVe GKug== MIME-Version: 1.0 In-Reply-To: References: From: Devin Jeanpierre Date: Mon, 23 Jul 2012 06:22:45 -0400 Subject: Re: python package confusion To: Lipska the Kat Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343039009 news.xs4all.nl 6951 [2001:888:2000:d::a6]:44276 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25846 On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat 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 > 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