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


Groups > comp.lang.python > #18830 > unrolled thread

Re: import problems.

Started byPeter Otten <__peter__@web.de>
First post2012-01-11 14:57 +0100
Last post2012-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.


Contents

  Re: import problems. Peter Otten <__peter__@web.de> - 2012-01-11 14:57 +0100

#18830 — Re: import problems.

FromPeter Otten <__peter__@web.de>
Date2012-01-11 14:57 +0100
SubjectRe: 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?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web