Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28424

Re: Import Problem on WIndows py3

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 <werner@thieprojects.ch>
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 <werner@thieprojects.ch>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.191.1346791542.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Import Problem on WIndows py3 jimmyli1528@gmail.com - 2012-09-04 12:49 -0700
  Re: Import Problem on WIndows py3 Werner Thie <werner@thieprojects.ch> - 2012-09-04 10:45 -1000
    Re: Import Problem on WIndows py3 Jimbo Jim <jimmyli1528@gmail.com> - 2012-09-04 13:52 -0700
    Re: Import Problem on WIndows py3 Jimbo Jim <jimmyli1528@gmail.com> - 2012-09-04 13:52 -0700

csiph-web