473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

wxPython and Py2exe crashes in "window" mode but not in "console" mode

I have created an application using wxPython and compiled it using
py2exe. When I put

setup(console=['myscript.py'])

in my setup.py file, the resulting application runs just fine. But
when I change it to

setup(windows=['myscript.py'])

The application crashes without any indication of what happened.
During this particular point in the application it calls a
gethostbyaddr and gethostbyname and does a spawnl to another
application. When I use Tkinter, this does not happen. I've searched
around Google and the py2exe and wxPython sites and haven't found
anything that seems to relate to this.

Details:
All are binary distributions for Windows running on Windows XP SP2
ActivePython 2.4.3 Build 12
wxPython 2.6.3.3 (ansi) for Python 2.4
py2exe 0.6.5

Any ideas?

Thanks in advance.

--
Jerry

Aug 25 '06 #1
3 2880
Hi Jerry,
I have created an application using wxPython and compiled it using
py2exe. When I put

setup(console=['myscript.py'])

in my setup.py file, the resulting application runs just fine. But
when I change it to

setup(windows=['myscript.py'])

The application crashes without any indication of what happened.
During this particular point in the application it calls a
gethostbyaddr and gethostbyname and does a spawnl to another
application. When I use Tkinter, this does not happen. I've searched
around Google and the py2exe and wxPython sites and haven't found
anything that seems to relate to this.

Details:
All are binary distributions for Windows running on Windows XP SP2
ActivePython 2.4.3 Build 12
wxPython 2.6.3.3 (ansi) for Python 2.4
py2exe 0.6.5
I'd like to reproduce your crash, could you post a sample ?
Aug 25 '06 #2
jean-michel, I'm at work at the moment and can't post with attachments.
I will do so once I get home.

jean-michel bain-cornu wrote:
I'd like to reproduce your crash, could you post a sample ?
Aug 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Mack | last post by:
Intermittently I get the following error on Firefox: "Error: uncaught exception: Permission denied to get property HTMLDocument.window" What can cause this error? I do an image switch via JS...
0
by: joeycalisay | last post by:
I sometimes encounter the above message when using Command Window eventhough it (CW) exposes a valid command signature with intellisense. Just now, I was able to research on the newsgroups about...
0
by: Ross Marchant | last post by:
Hi all, I wrote a simple server console application, and i notice that if I click on the console window is stops processing because the window is in a text select mode. Is there anyway to turn...
1
by: Grey | last post by:
Can I use System.Console.WriteLine('fasfasdf') in ASP.NET development as I need to print out some message in the console during the debug stage..
3
by: Progalex | last post by:
Hi everybody! I'm creating a very simple VB .NET application that needs to launch the command line ml.exe compiler. At the moment I'm redirecting ML's output to a text file and then my app...
3
by: Feng | last post by:
I am debugging my code from VS.Net and need to watch my console.wirteline messages as I run the code. The problem is, as soon as my code starts running in debugging mode, the console window...
1
by: Steven Prasil | last post by:
When I run/debug a program with Console.out.write statements inside and the program execution reaches this statement then a new console/command prompt window (this with black background) is opened...
2
by: downtownjelly | last post by:
i have a program in Bloodshed DevC++ and, when i use system("start c://program"); it works, it just makes an ugly console window appear for 1-3 seconds is there a way to hide or "suppress" that
3
by: Curious | last post by:
I''ve created a simple Console Application in C#.NET (.NET 2.0), and I have the following code: Console.WriteLine("Now let us begin!"); However, the string, "Now let us begin!", never shows up...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.