Why can't I import this?

John Henry john106henry at hotmail.com
Tue May 13 16:36:41 EDT 2008


On May 13, 1:18 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> John Henry schrieb:
>
> > Hi list,
>
> > I can't understand this.  The following import statement works fine:
>
> >     from PythonCard.templates.dialogs import runOptionsDialog
>
> > but this one fails:
>
> >     from PythonCard.tools.codeEditor.codeEditor import CodeEditor
>
> > I've checked and rechecked to make sure that the spellings are proper
> > and that the tools, the codeEditor directory, and codeEditor.py, and
> > the class CodeEditor all exists and yet idle keep complaining that it
> > can't import from PythonCard.tools.
>
> How do these complaints *look* - we can't read your mind nor your
> screen, as you might imagine....
>
> > What's going on?  (Running Python2.5 under WinXP).
>
> What do you think is more probable - pythons import-mechanism, the
> foundation of nearly all libraries, is broken - or you make a mistake?
>
> Diez

Thumper's dad always told him:  If you don't have anything nice/useful/
garbage to say, then don't say noth'ng at all.

Next.



More information about the Python-list mailing list