Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18830 > unrolled thread
| Started by | Peter Otten <__peter__@web.de> |
|---|---|
| First post | 2012-01-11 14:57 +0100 |
| Last post | 2012-01-11 14:57 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: import problems. Peter Otten <__peter__@web.de> - 2012-01-11 14:57 +0100
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2012-01-11 14:57 +0100 |
| Subject | Re: import problems. |
| Message-ID | <mailman.4647.1326290256.27778.python-list@python.org> |
Antoon Pardon wrote: > I have an import problem I can't figure out. > I am using python 2.6.6 on a debian box > > In one directory (pylib) I have a file misc.py and > the file testutil.py. > from misc import Rec > ImportError: cannot import name Rec > > Why can I import Rec from misc in testutil when I call testutil.py > directly but not when testutil was imported itself? Without looking into the details, could it be that you have two misc.py files one with and one without Rec?
Back to top | Article view | comp.lang.python
csiph-web