[Eric] eric4 problem on Vista: pythonw.exe has stopped working

Wilde, Marion G mgwilde at sandia.gov
Fri Mar 26 14:42:03 GMT 2010


Python is run from a DOS window; the trick I've found to make it close the window after 
executing a python script is to "call xxxx.py" rather than transferring control to it.

Here are two small code snippets that may help:


	@echo off
	call c:\python2.4\python test.py


	import os
	# kill time loop so that the display is visible long
	# enough to see it
	for i in range (50000000):

I've executed this on my Windows XP machine, and it works to close the DOS window when the
program exits.

Marion Wilde

-----Original Message-----
From: eric-bounces at riverbankcomputing.com [mailto:eric-bounces at riverbankcomputing.com] On Behalf Of Francesco Biccari
Sent: Friday, March 26, 2010 7:43 AM
To: eric
Subject: Re: [Eric] eric4 problem on Vista: pythonw.exe has stopped working

Thanks for suggestions.
I'm trying to compile PyQt.

In the meantime I cas report the debug messages of eric4.
The last message appears when I close the program.
It seems that eric4 is not the problem. : )

Ciao ciao.

python eric4.py --debug

DEBUG:root:Importing Preferences
DEBUG:root:Importing packages...
DEBUG:root:Generating Main Window...
DEBUG:root:Initializing Plugin Manager...
DEBUG:root:Generating Main User Interface...
DEBUG:root:Creating Layout...
DEBUG:root:Creating Viewmanager...
DEBUG:root:Creating toolboxes...
DEBUG:root:Created Layout
DEBUG:root:Creating Debugger UI...
DEBUG:root:Creating Programs Dialog...
DEBUG:root:Creating Shortcuts Dialog...
DEBUG:root:Setting up connections...
DEBUG:root:Initializing Tools...
DEBUG:root:Registering Objects...
DEBUG:root:Initializing Actions...
DEBUG:root:Initializing Menus...
DEBUG:root:Initializing Toolbars...
DEBUG:root:Initializing Statusbar...
DEBUG:root:Initializing Single Application Server...
DEBUG:root:Activating Plugins...
DEBUG:root:Restoring Toolbarmanager...
DEBUG:root:Shutting down, result 0

On Wed, Mar 24, 2010 at 19:05, detlev <detlev at die-offenbachs.de> wrote:
> Hi,
> I can't reproduce the issue on my Windows systems (Win 7 and XP). 
> Please try to install PyQt4, sip, ... from sources to make sure, the 
> issue is not related to the PyQt4 installer.
> If you want to get rid of the DOS window, simply create a link to 
> eric4.pyw on your desktop.
> Regards,
> Detlev
> On Mittwoch, 24. März 2010, Francesco Biccari wrote:
>> Hello,
>> I am a new user of eric4.
>> I use Windows Vista 32 bit.
>> I installed in order Python 2.6.5 (Windows installer), Qt 
>> (qt-sdk-win-opensource-2010.02.1.exe file, maybe it was not necessary 
>> because PyQt already have all the needed files), PyQt 
>> (PyQt-Py2.6-gpl-4.7.2-1.exe) and eric4 (eric4-4.4.2).
>> Everything, except for eric4, works fine (even simple program with 
>> some Qt widgets).
>> eric4 works well but when I close the program, a Windows pop-up 
>> appears saying: "pythonw has stopped working".
>> I try to edit the file eric4.bat substituting pythonw with python but 
>> the error becomes "python has stopped working".
>> Moreover, just for your information, when I launch the script 
>> eric4.bat a DOS window remains opened.
>> I think this is wrong because pythonw is exactly used for this 
>> porpouse,
>>  right?
>> I would like to solve this very annoying problem.
>> Thank you for your help.
>> Regards.
>> Francesco
>> _______________________________________________
>> Eric mailing list
>> Eric at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/eric
> --
> Detlev Offenbach
> detlev at die-offenbachs.de
Eric mailing list
Eric at riverbankcomputing.com

More information about the Eric mailing list