ImportError in eric4
rhill
rhill at raymondhill.net
Wed Dec 23 09:14:15 EST 2009
Steven D'Aprano wrote:
> 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
>
>
Thank you very much! That fixed the problem. That also adds a bit to my
understanding of the concept of 'package,' eventually all the pieces
will fit together.
More information about the Python-list
mailing list