I got a ImportError,help~!
Benjamin Kaplan
benjamin.kaplan at case.edu
Wed Nov 24 09:53:05 EST 2010
2010/11/24 xlizzard <xlizzard at 163.com>:
> HI,
> I am a newer to python(my version is 3.1.2),recently I got a IDE named
> Eric(http://eric-ide.python-projects.org/index.html) to study
> and on this main page I downloaded a tutorial named "minibrowser".
> http://eric-ide.python-projects.org/tutorials/MiniBrowser/index.html
> But when I run this source ,I got the follow Error:
> Traceback (most recent call last):
> File "C:\minibrowser\minibrowser\minibrowser.py", line 3, in <module>
> from ui.mainwindow import MainWindow
> File "C:\minibrowser\minibrowser\ui\mainwindow.py", line 10, in <module>
> from Ui_mainwindow import Ui_MainWindow
> ImportError: No module named Ui_mainwindow
>
> I don't understand what's wrong?!
> The folder structure of the source just like this
> A.py+
> -B.py
> -C.py
> A call B,B call C in the same folder ,and "not found"?
> Can anyone help me,thanks a lot~!
>
How is that a folder structure? Is A.py a folder? Also, you didn't
give us enough information to help. If your files are called A.py,
B.py, and C.py, then of course it can't find the Ui_MainWindow module
(aside: modules are usually lowercase)
>
> ________________________________
> 网易163/126邮箱百分百兼容iphone ipad邮件收发
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
More information about the Python-list
mailing list