ImportError in eric4

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Wed Dec 23 09:00:35 EST 2009


On Wed, 23 Dec 2009 11:02:25 -0200, rhill wrote:

> Why is the file ./ui/MainWindow.py not seen by the python interpreter?

My wild guess is that you haven't set up a package correctly. You need to 
include a file __init__.py in the ui folder for Python to recognise it 
correctly. Note that the file doesn't need to include anything, it just 
needs to exist. Also note that the file name has TWO underscores before 
and after the "init", that is:

underscore underscore i n i t underscore underscore dot p y


-- 
Steven



More information about the Python-list mailing list