On 17 Feb, 2013, at 10:02, Pierre Ratinaud <ratin...@univ-tlse2.fr> wrote:

> Hi all,
> I have create a .app with py2app for a wxpython application. The resulting 
> app does not work as expected if I double click on it (it works but somewhere 
> in the process, an encoding problem appear from another program called with 
> os.popen). This problem does not occur if I launch my app directly with 
> python, it does not occur if I launch the app by double-clic on myapp inside 
> the .app and it does not occur if I open the .app from a terminal with the 
> "open" command.
> This is happening with python 2.7.2, wxpython2.9, py2app 0.7.3 under Mac OS X 
> 10.6.8.
> What am I missing ?

I'm not sure. What kind of encoding error occurs? The exact error message might 
give a hint as to what's going on here.

What's really strange is that double-clicking the app does not have the same 
behavior as calling the open command, I'd expect that those would be behave the 
same.

Do you have a shell environment variable in your shell's profile 
(.profile/.bash_profile/...) that is needed by the other program? Those 
definitions aren't seen by applications launched through the Finger because the 
Finder doesn't read the shell's profile.   You could try to use " python 
setup.py py2app --emulate-shell-environment" to build the app bundle, that 
activates a hack that does try to read the shell environment.

Ronald
> thanks
> Pierre
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to