Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'error:': 0.05; 'importerror:': 0.05; 'properly.': 0.07; 'subject:Error': 0.07; 'csv': 0.09; 'ide': 0.09; 'modifies': 0.09; 'mvc': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'subject:skip:f 10': 0.09; 'python': 0.10; 'python.': 0.11; 'jan': 0.11; '11:15': 0.16; 'eclipse': 0.16; 'i\xe2\x80\x99m': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sys.path': 0.16; 'wrote:': 0.16; 'directory.': 0.18; 'all,': 0.20; 'ph.d.': 0.22; 'am,': 0.23; 'represents': 0.23; 'import': 0.24; 'header:In-Reply- To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'found.': 0.27; 'locations': 0.27; "skip:' 10": 0.28; 'it\xe2\x80\x99s': 0.29; 'searches': 0.29; 'starts': 0.29; 'work.': 0.30; 'probably': 0.31; 'post': 0.31; 'help,': 0.32; 'run': 0.33; 'directory,': 0.33; 'file': 0.34; '???': 0.35; 'dir': 0.35; 'path': 0.35; 'should': 0.36; 'project': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'doing': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'more': 0.63; 'skip:\xe2 10': 0.70; 'subjectcharset:utf-8': 0.71; 'analysis': 0.72; 'prompt': 0.79; 'subject:8bit%:21': 0.84; '8bit%:33': 0.91; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: =?UTF-8?Q?Re:_Python_Error:_ImportError:_No_module_named_''folder?= =?UTF-8?Q?=5fname=e2=80=99_at_Command_Prompt?= Date: Sat, 11 Jul 2015 20:02:45 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436659384 news.xs4all.nl 2882 [2001:888:2000:d::a6]:48937 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93713 On 7/11/2015 11:15 AM, Ernest Bonat, Ph.D. wrote: > Hi All, > > > I=E2=80=99m doing a CSV data analysis in Python using Eclipse IDE/PyDev= =2E I have > organized my project using the standard MVC architecture. In Eclipse ID= E > everything is working properly. When I run my main.py file it at Comman= d > Prompt I got an error: ImportError: No module named 'folder_name'. It=E2= =80=99s > like the location path of the =E2=80=98'folder_name=E2=80=99 was not fo= und. Do I need to > update my main.py file to run it at the Command Prompt? 'import module' searches directories on sys.path for a file or directory = named 'module'. sys.path starts with '.', which represents the=20 'current' directory. If you start with the directory containing main.py=20 as current directory and 'folder-name' is in the same directory, the=20 import should work. Otherwise ??? EclipseIDE probably modifies the=20 current dir and/or path to make things work. For any more help, post the OS and locations of main.py, folder_name,=20 and python. --=20 Terry Jan Reedy