py2exe problem

  • Thread starter Wolfgang Forstmeier
  • Start date
W

Wolfgang Forstmeier

Hey list,

what kind of error do I have with getting this error at starting my app.
Im am not using IdleConf.GetOption right now.

Warning: configHandler.py - IdleConf.GetOption -
problem retrieving configration option 'name'
from section 'Keys'.
returning default value: ''
 
G

Gabriel Genellina

what kind of error do I have with getting this error at starting my app.
Im am not using IdleConf.GetOption right now.

Warning: configHandler.py - IdleConf.GetOption -
problem retrieving configration option 'name'
from section 'Keys'.
returning default value: ''

but do you use idle or idlelib in your application?
 
W

Wolfgang Forstmeier

En Wed, 01 Apr 2009 17:51:52 -0300, Wolfgang Forstmeier


but do you use idle or idlelib in your application?
Ah yes,

after some research in my code I found the following import

from idlelib.OutputWindow import tkMessageBox

Maybe someone could assist me with fixing that issue,
because I am really new to python and does not exactly know what to do now.
 
G

Gabriel Genellina

after some research in my code I found the following import

from idlelib.OutputWindow import tkMessageBox

Maybe someone could assist me with fixing that issue,
because I am really new to python and does not exactly know what to do
now.

Ok, but do you really use idlelib for something? Or it's just some random
code you found somewhere and drop into your application?
Also, note that you got just a warning, not an error; chances are your
program may still work. BTW, what's your program for?
 
G

Gabriel Genellina

after some research in my code I found the following import

from idlelib.OutputWindow import tkMessageBox

Maybe someone could assist me with fixing that issue,
because I am really new to python and does not exactly know what to do
now.

Ok, but do you really use idlelib for something? Or it's just some random
code you found somewhere and drop into your application?
Also, note that you got just a warning, not an error; chances are your
program may still work. BTW, what's your program for?
 
W

Wolfgang Forstmeier

En Thu, 02 Apr 2009 08:06:22 -0300, Wolfgang Forstmeier

Ok, but do you really use idlelib for something? Or it's just some
random code you found somewhere and drop into your application?

Ah yes, I really use this. I create some message boxes for a little GUI
application that controls some other program with COM.
Running my app without py2exe, just with python, there is no warning at
all. This comes in with py2exe first.

Here some piece of code that I use for tkMessageBox.

from idlelib.OutputWindow import tkMessageBox

....
# Define about message box
def about(self):
tkMessageBox.showinfo("About", "My little about text box.")
# --
....

There is some more GUI programming arround that def in my class, but
that uses only Tkinter, should not be interesting for that error.
Also, note that you got just a warning, not an error; chances are your
program may still work.

That is right, but there is an annoying message box at closing my
program that tells me the error above.

BTW, what's your program for?

Connecting a MFC COM application with an old FORTRAN program.
 
G

Gabriel Genellina

from idlelib.OutputWindow import tkMessageBox

...
# Define about message box
def about(self):
tkMessageBox.showinfo("About", "My little about text box.")
# --
...

There is some more GUI programming arround that def in my class, but
that uses only Tkinter, should not be interesting for that error.

The above doesn't use idlelib either; tkMessageBox comes with Tkinter.
import tkMessageBox
is enough, and doesn't carry idlelib as a dependency.

If you remove all idlelib remaining references -if any- that annoying
warning should go away too (and your program should be smaller and load
faster).
 
D

Dave Angel

Wolfgang said:
Ah yes, I really use this. I create some message boxes for a little
GUI application that controls some other program with COM.
Running my app without py2exe, just with python, there is no warning
at all. This comes in with py2exe first.

Here some piece of code that I use for tkMessageBox.

from idlelib.OutputWindow import tkMessageBox

...
# Define about message box
def about(self):
tkMessageBox.showinfo("About", "My little about text box.")
# --
...

There is some more GUI programming arround that def in my class, but
that uses only Tkinter, should not be interesting for that error.
So why not use tkMessageBox directly, and skip Idle's namespace wrapping?

import tkMessageBox

tkMessageBox.showinfo("About", "My little about text box.")
 
W

Wolfgang Forstmeier

So why not use tkMessageBox directly, and skip Idle's namespace wrapping?

import tkMessageBox

tkMessageBox.showinfo("About", "My little about text box.")

Hey Dave, thanks a lot, that did the job, because I really does not use
Idle in any other place.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,508
Members
48,193
Latest member
DannyRober

Latest Threads

Top