Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Eric - "No module named MainWindow"

Reply
Thread Tools

Re: Eric - "No module named MainWindow"

 
 
Vincent Vande Vyvre
Guest
Posts: n/a
 
      02-17-2013
Le 17/02/13 16:13, Joel Goldstick a écrit :
>
>
>
> On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre
> <(E-Mail Removed) <(E-Mail Removed)>> wrote:
>
> Le 17/02/13 10:08, Phil a écrit :
> > Thank you for reading this.
> >
> > I've been playing with Eric all day and I almost have a working GUI
> > application, but not quite. I have followed the two tutorials on the
> > Eric site and I'm sure that I haven't miss entered anything and so I
> > think the error is the result of something missing from my system or
> > perhaps a path error.
> >
> > This is the error message:
> >
> > The debugged program raised the exception unhandled ImportError
> > "No module named MainWindow"
> > File: /home/phil/main.py, Line: 4
> >
> > And this is the code:
> >
> > !/usr/bin/python
> >
> > from PyQt4.QtGui import QApplication
> > from ui.MainWindow import MainWindow

>


> (strip)
>
>
> I just looked at the tutorial that you might be experimenting with on
> this page:
> http://eric-ide.python-projects.org/...ser/index.html
>
> The class MainWindow is in mainwindow.py in the ui folder. I would
> try this:
>
> from ui.mainwindow import MainWindow


In your initial code, thi's "ui.MainWindow" not "ui.mainwindow"


--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Eric - "No module named MainWindow" Phil Python 0 02-17-2013 11:04 PM
Re: Eric - "No module named MainWindow" Joel Goldstick Python 0 02-17-2013 03:13 PM
Re: Eric - "No module named MainWindow" Vincent Vande Vyvre Python 0 02-17-2013 11:35 AM
Eric - "No module named MainWindow" Phil Python 0 02-17-2013 09:08 AM
Than ;you Eric <Eric> Jackie MCSD 0 06-22-2004 05:24 PM



Advertisments