Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93713
| 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 | <python-python-list@m.gmane.org> |
| 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 <tjreedy@udel.edu> |
| Subject | Re: Python Error: ImportError: No module named ''folder_name’ at Command Prompt |
| Date | Sat, 11 Jul 2015 20:02:45 -0400 |
| References | <CANutusz_o3cQNfoDDqgV=K8fai44rAL6QyCk3z8NC3FRRPNQdg@mail.gmail.com> |
| 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 | <CANutusz_o3cQNfoDDqgV=K8fai44rAL6QyCk3z8NC3FRRPNQdg@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.439.1436659384.3674.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 7/11/2015 11:15 AM, Ernest Bonat, Ph.D. wrote: > Hi All, > > > I’m doing a CSV data analysis in Python using Eclipse IDE/PyDev. I have > organized my project using the standard MVC architecture. In Eclipse IDE > everything is working properly. When I run my main.py file it at Command > Prompt I got an error: ImportError: No module named 'folder_name'. It’s > like the location path of the ‘'folder_name’ was not found. 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 'current' directory. If you start with the directory containing main.py as current directory and 'folder-name' is in the same directory, the import should work. Otherwise ??? EclipseIDE probably modifies the current dir and/or path to make things work. For any more help, post the OS and locations of main.py, folder_name, and python. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Error: ImportError: No module named ''folder_name’ at Command Prompt Terry Reedy <tjreedy@udel.edu> - 2015-07-11 20:02 -0400
csiph-web