Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28422 > unrolled thread
| Started by | jimmyli1528@gmail.com |
|---|---|
| First post | 2012-09-04 12:49 -0700 |
| Last post | 2012-09-04 13:52 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | jimmyli1528@gmail.com |
|---|---|
| Date | 2012-09-04 12:49 -0700 |
| Subject | Import Problem on WIndows py3 |
| Message-ID | <5087114e-3c76-4a39-b0dd-881c8adc76ab@googlegroups.com> |
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?
[toc] | [next] | [standalone]
| From | Werner Thie <werner@thieprojects.ch> |
|---|---|
| Date | 2012-09-04 10:45 -1000 |
| Message-ID | <mailman.191.1346791542.27098.python-list@python.org> |
| In reply to | #28422 |
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
[toc] | [prev] | [next] | [standalone]
| From | Jimbo Jim <jimmyli1528@gmail.com> |
|---|---|
| Date | 2012-09-04 13:52 -0700 |
| Message-ID | <caf7bdb0-2961-41f0-8933-2a8e7dbe95bf@googlegroups.com> |
| In reply to | #28424 |
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!
[toc] | [prev] | [next] | [standalone]
| From | Jimbo Jim <jimmyli1528@gmail.com> |
|---|---|
| Date | 2012-09-04 13:52 -0700 |
| Message-ID | <mailman.192.1346791952.27098.python-list@python.org> |
| In reply to | #28424 |
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!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web