Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; '(it': 0.09; 'subject:module': 0.09; 'subject:error': 0.11; 'advance.': 0.15; 'failed.': 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; 'feb': 0.19; 'trying': 0.21; 'work,': 0.22; "haven't": 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'then.': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; "they'll": 0.29; 'probably': 0.29; 'file': 0.32; 'ubuntu': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'path': 0.35; 'received:209.85': 0.35; 'add': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'to:addr:python.org': 0.39; 'help': 0.40; 'real': 0.61; 'back': 0.62; '20,': 0.65; '2013': 0.84; 'all;': 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=ykHdsEIv3i6mfAYEFi/f6j45FCBg7URK6p9WJ4hi0Tk=; b=CYeBaepC76YU6PebQd3ChUHbnLuVUKlipN55bme4YE7CEJqo/7U3mVLGESx+ixBPIh JRw3oehHfqRXFsdu1xR6uU70KqCL1OuOO77WGVXvIQzb5R3+cvQt5kfvjRyGUOMBFI6H i6Cf0NfkhcrzasBHcjNtRg54eR6UjmEetvwQ723dcorQ65rMV/Ha/PjX55LXHUOUeIrZ /jAqL9a2II0uxEYsKfNtVEbsUDvqWzEzvp9K0T8de4IQocrkaPkWLszgRUHUl4IOpuQY 8ieOw6coNKR/rqmTF6vhVLXmzlMf0q5WjmwjM5xc5bKBuL+rEFZHS48CAiq288abEpTZ ySdw== MIME-Version: 1.0 X-Received: by 10.52.88.197 with SMTP id bi5mr18338876vdb.58.1361287741911; Tue, 19 Feb 2013 07:29:01 -0800 (PST) In-Reply-To: <3c0e501e-cc5b-434e-b65b-0d4ffce82af9@googlegroups.com> References: <3c0e501e-cc5b-434e-b65b-0d4ffce82af9@googlegroups.com> Date: Wed, 20 Feb 2013 02:29:01 +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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361287750 news.xs4all.nl 6884 [2001:888:2000:d::a6]:48259 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39230 On Wed, Feb 20, 2013 at 2:23 AM, wrote: > Hello all; I am using Ubuntu 12.10 and Python v2.7.3. I am trying to add= a directory to the PYTHONPATH. All of the commands I have found on the we= b have failed. Please help me to add a directory to the PYHONPATH. The fi= le path is Home/home/bin. Thanks in advance. What do you mean by that path? That doesn't look like an Ubuntu/Linux path name. Pull up a terminal (Ctrl-Alt-T should do that for you, though I haven't used an Ubuntu since 10.10) and see if you can 'ls' the path - once you have the real path name (it might start with /home/your_user_name/ for instance), go back to the commands you found on the web and try them - they'll probably work, then. ChrisA