Why can't I import this?

John Henry john106henry at hotmail.com
Tue May 13 15:31:52 EDT 2008


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.

What's going on?  (Running Python2.5 under WinXP).

Regards,



More information about the Python-list mailing list