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


Groups > comp.lang.python > #28426

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 <jimmyli1528@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'importerror:': 0.05; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; '__init__.py': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.17; 'module': 0.19; 'trying': 0.21; 'import': 0.21; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; '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; 'received:google.com': 0.34; 'received:209.85': 0.35; 'cc:no real name:2**1': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'where': 0.40; 'subject:Import': 0.84
Newsgroups comp.lang.python
Date Tue, 4 Sep 2012 13:52:29 -0700 (PDT)
In-Reply-To <mailman.191.1346791542.27098.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2602:306:cd9e:2850:b50c:4f27:9d4b:9dfb; posting-account=An6yGQoAAAD9ay8V5T7Wu52YyqyK-bYm
References <5087114e-3c76-4a39-b0dd-881c8adc76ab@googlegroups.com> <mailman.191.1346791542.27098.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 2602:306:cd9e:2850:b50c:4f27:9d4b:9dfb
MIME-Version 1.0
Subject Re: Import Problem on WIndows py3
From Jimbo Jim <jimmyli1528@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
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>
Message-ID <mailman.192.1346791952.27098.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346791952 news.xs4all.nl 6948 [2001:888:2000:d::a6]:36180
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28426

Show key headers only | View raw


On Tuesday, September 4, 2012 1:45:55 PM UTC-7, Werner Thie wrote:
> On 9/4/12 9:49 AM, jimmyli1528 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

OK works perfectly!

Back to comp.lang.python | Previous | NextPrevious 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