Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'session.': 0.07; 'skip:/ 10': 0.07; 'subject:module': 0.09; 'subject:error': 0.11; 'applies': 0.15; 'command,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:failed': 0.16; 'subject:import': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'variables': 0.17; 'shell': 0.18; 'feb': 0.19; 'putting': 0.20; 'sort': 0.21; 'import': 0.21; 'user.': 0.23; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'skip:" 20': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'environment': 0.29; 'error': 0.30; 'file': 0.32; 'getting': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'done': 0.34; 'path': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'created': 0.36; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'apply': 0.39; 'where': 0.40; 'your': 0.60; 'export': 0.62; '20,': 0.65; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=9j0fAKS7ZdOPOBVamJJdGA7LJaVmBTZ1mco2zBLkRo8=; b=Ms+evT00XF9hux3TkxBsxLDOdFb31Efx6/YTdREwIZQ+xi406fN630TjTQLaQFV+c7 S/Zr1WDxiEghAjqNhhmQxsn5RQPKg65sxWkz4djnoC9d8N46mrtkoypD14xDBWp/E7mq 2NdqLg8rqBhv1Fv7lU2h9t9hrbok3iQQDAKEiNDkVK2kxOpkO35rN1UdMcoWlVFhP6Ys nSpgDxGZu57HL0Y19mD1kRzSkEgjcn1x7J5Pi3s+5/BhCFHu9cNqkBGafU4U3Jb4yzGd 7T/RVf8rI6lsRFoynmkfQNiK+gB6fC4wFsEE2tEpBJu1zBqdEkATqdxIqJV6Ih1q/52J DArw== MIME-Version: 1.0 X-Received: by 10.220.149.200 with SMTP id u8mr22608390vcv.7.1361310381388; Tue, 19 Feb 2013 13:46:21 -0800 (PST) In-Reply-To: References: <3c0e501e-cc5b-434e-b65b-0d4ffce82af9@googlegroups.com> <8c9e791f-1c8f-434e-b009-d234c45e1964@googlegroups.com> Date: Wed, 20 Feb 2013 08:46:21 +1100 Subject: Re: Python module import failed error From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361310384 news.xs4all.nl 6979 [2001:888:2000:d::a6]:59449 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39281 On Wed, Feb 20, 2013 at 4:45 AM, wrote: > The directory /home/matt/bin contains "multimode_helper.py" and this file= path is in the PYTHONPATH. I still get the import error however. so now t= hat i know the file path is in PYTHONPATH but i am still getting the import= error i am really confused here. Do you understand how Unix environment variables work? You're using the 'export' command, but that doesn't make any sort of global change - it still applies only to things done in the same session. (Actually, your change applies only to children of the shell where you do it... but never mind that now.) You may do better by putting the export command into your .bashrc - that would apply to all sessions created by your user. ChrisA