Why can't I import this?

Diez B. Roggisch deets at nospam.web.de
Tue May 13 16:18:25 EDT 2008


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



More information about the Python-list mailing list