Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61540
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: python import error |
| Date | 2013-12-11 09:51 +0000 |
| References | <93405ea9-6faf-4a09-9fd9-ed264e3136e1@googlegroups.com> <l88r4e$mhe$1@reader1.panix.com> <58f7bd2a-ef82-4782-b4fb-db824f9c8e44@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3877.1386755511.18130.python-list@python.org> (permalink) |
On 11/12/2013 05:45, smilesonisamal@gmail.com wrote: > On Wednesday, December 11, 2013 10:23:34 AM UTC+5:30, John Gordon wrote: >> In <93405ea9-6faf-4a09-9fd9-ed264e3136e1@googlegroups.com> smilesonisamal@gmail.com writes: >> >> >> >>> File "aaa.py", line 5, in <module> >> >>> from ccc.ddd import sss >> >>> ImportError: No module named ccc.ddd >> >> >> >>> directory structure as follows: >> >> >> >>> ccc >> >>> | >> >>> ddd >> >>> | >> >>> aaa.py >> >>> sss.py >> >> >> >> A python file isn't importable unless the directory also contains a file >> >> named __init__.py . >> >> >> >> Try making __init__.py files in the ccc and ddd directories. If you >> >> don't know what to put in them, just leave them blank. >> >> >> It is having __init__.py as blank in ccc and ddd directories. But it still doesnot work. >> -- >> >> John Gordon Imagine what it must be like for a real medical doctor to >> >> gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'. > Have you actually written anything above? You also appear to be suffering from the highly contagious double spaced google disease. So would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the double line spacing above, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python import error smilesonisamal@gmail.com - 2013-12-10 19:56 -0800
Re: python import error Michael Torrie <torriem@gmail.com> - 2013-12-10 21:25 -0700
Re: python import error John Gordon <gordon@panix.com> - 2013-12-11 04:53 +0000
Re: python import error smilesonisamal@gmail.com - 2013-12-10 21:45 -0800
Re: python import error Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-12-10 23:23 -0800
Re: python import error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-11 09:51 +0000
Re: python import error John Gordon <gordon@panix.com> - 2013-12-11 16:15 +0000
Re: python import error Michael Torrie <torriem@gmail.com> - 2013-12-10 22:02 -0700
csiph-web