I have made a GUI to control a test setup in our lab.
To distribute it, I have used pyInstaller, which converts the project to an executable file.
The program works the way it should, but unfortunately, a warning appears on some computers every time I open the GUI (see attachment).
!
I click ‘OK’ and the warning disappears, after which the program works as usual.
I suspect the warning has something to do with wxPython. I have searched around a lot, but can’t figure out what to do about it. Does anyone have any ideas on how to resolve the problem?
Hello Komoto48g,
Thank you for the suggestions. I tried the solutions, but without any effect. I read the discussion-topic you linked, checked that I have the newest version of PyInstaller and Windows, but I keep getting the same warning.
Sorry that I cannot be a help, but could this be a hint?
I checked how the locale warning occurs. As @swt2c pointed out, it can be disabled by wx.Log.EnableLogging(False). The following code doesn’t give a warning.
I have tried the posted solutions but without success.
To check if pyinstaller embeds locale settings while packaging I tried to hardcode locale settings (LANGUAGE_ENGLISH) and tried to log it:
From the log I can se that the language set to English and that the language is available, but still I get the same error when starting the program up.