Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39032

Re: Eric - "No module named MainWindow"

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'exception': 0.03; 'sys': 0.05; 'url:launchpad': 0.05; '__name__': 0.07; 'line:': 0.07; 'main()': 0.07; 'raised': 0.07; 'skip:/ 10': 0.07; 'importerror': 0.09; 'subject:module': 0.09; 'unhandled': 0.09; 'cc:addr:python- list': 0.10; 'looked': 0.10; 'def': 0.10; 'gui': 0.11; 'tutorials': 0.15; "'__main__':": 0.16; 'debugged': 0.16; 'folder.': 0.16; 'main():': 0.16; 'oqapy': 0.16; 'paqager': 0.16; 'quite.': 0.16; 'subject:Eric': 0.16; 'url:oqapy': 0.16; 'url:paqager': 0.16; 'url:py': 0.16; 'url:qarte': 0.16; 'v.v.': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'app': 0.19; 'feb': 0.19; 'module': 0.19; 'followed': 0.20; 'import': 0.21; 'error.': 0.21; 'file:': 0.22; 'cc:2**0': 0.23; '&gt;': 0.23; 'this:': 0.23; "haven't": 0.23; "i've": 0.23; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; '"no': 0.29; 'skip:q 20': 0.29; 'url:ui': 0.29; 'url:mailman': 0.29; 'class': 0.29; 'this.': 0.29; "i'm": 0.29; 'error': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'skip:! 10': 0.33; 'code:': 0.33; 'tutorial': 0.33; 'received:google.com': 0.34; 'entered': 0.34; 'eric': 0.35; 'path': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'url:org': 0.36; 'anything': 0.36; 'thank': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'url:index': 0.61; 'day': 0.73; 'miss': 0.75; '2013': 0.84; 'joel': 0.91; 'phil': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=EqVOyHdrCPnb1GDhLwiKm20iVO5EsB2GjIdMlaFzARk=; b=sMVQJJO3sna79roWnzBx5F8+74MfGPvjl/fruAiuqY+jjI69pGodZ/Vne0vtya6Dwq JrWXt+Ilxxsk141pFdnuvfOMR/HX6EUFfWABOLizDz/MI3dRgak8zpwlFgDb9J3Wbz4b 1+B7JxM7rXQL+srSzMLGq2FmNyvQDXQIaQdOUItVwDBDo2F5M//hlqgsUeHmoYbrH9Y8 hwnSEuN4yQSe/mPvy9Hgxc1TI+QeA6eXs3UElouVCt1KWMstIspsJXKhKlrB2KfwsCHR 0gC9b9AcTdz5IE6GfV+I7fSMDF3QXQSGQIGu6zf5Sro3Iq0LjHOHzE5CCG6LXvGHzioB duPg==
MIME-Version 1.0
X-Received by 10.52.22.74 with SMTP id b10mr10254423vdf.96.1361114036923; Sun, 17 Feb 2013 07:13:56 -0800 (PST)
In-Reply-To <5120C085.1060101@swing.be>
References <51209E06.5070003@bigpond.com> <5120C085.1060101@swing.be>
Date Sun, 17 Feb 2013 10:13:56 -0500
Subject Re: Eric - "No module named MainWindow"
From Joel Goldstick <joel.goldstick@gmail.com>
To Vincent Vande Vyvre <vincent.vandevyvre@swing.be>
Content-Type multipart/alternative; boundary=20cf3077639fab6e4404d5ed0ea5
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1897.1361114039.2939.python-list@python.org> (permalink)
Lines 150
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361114039 news.xs4all.nl 6861 [2001:888:2000:d::a6]:55895
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39032

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Feb 17, 2013 at 6:35 AM, Vincent Vande Vyvre <
vincent.vandevyvre@swing.be> 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
> >
> > def main():
> >     import sys
> >     app = QApplication(sys.argv)
> >     wnd = MainWindow()
> >     wnd.show()
> >     sys.exit(app.exec_())
> >
> > if __name__ == '__main__':
> >     main()
> >
> > I have tried mainWindow and mainwindow as well so it appears not to be
> > a case error.
> >
> Are you sure you have a class MainWindow in your ui.MainWindow.py ?
>

I just looked at the tutorial that you might be experimenting with on this
page: http://eric-ide.python-projects.org/tutorials/MiniBrowser/index.html

The class MainWindow is in mainwindow.py in the ui folder.  I would try
this:

from ui.mainwindow import MainWindow





> --
> Vincent V.V.
> Oqapy <https://launchpad.net/oqapy> . Qarte
> <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Eric - "No module named MainWindow" Joel Goldstick <joel.goldstick@gmail.com> - 2013-02-17 10:13 -0500

csiph-web