Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.102 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'importerror:': 0.05; '__init__.py': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.17; 'module': 0.19; 'trying': 0.21; 'import': 0.21; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'module.': 0.27; 'folder': 0.30; 'file': 0.32; 'to:addr:python-list': 0.33; 'should': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'received:network': 0.61; 'email addr:gmail.com': 0.63; 'header:Reply-To:1': 0.68; 'received:ch': 0.69; 'reply-to:no real name:2**0': 0.72; 'subject:Import': 0.84 Date: Tue, 04 Sep 2012 10:45:30 -1000 From: Werner Thie Organization: Thie & Co Projects User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Import Problem on WIndows py3 References: <5087114e-3c76-4a39-b0dd-881c8adc76ab@googlegroups.com> In-Reply-To: <5087114e-3c76-4a39-b0dd-881c8adc76ab@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: werner@thieprojects.ch 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346791542 news.xs4all.nl 6925 [2001:888:2000:d::a6]:32965 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28424 On 9/4/12 9:49 AM, jimmyli1528@gmail.com wrote: > I have a main program and a 3rd party module. Trying to import colorama, where colorama is a folder with files in it, returns an ImportError: No module named colorama. How should I import folders? > Do you have a (empty) __init__.py file present in this particular directory? Werner