[Half-OT]: Starting a compiled app on Linux

Unless you give the file path in some form, bash won’t look in the current directory for commands. Try using

$ ./wxapp

you could also specify the entire path, but I don’t know why you would want to

···

----- Original Message ----
From: Andrea Gavana andrea.gavana@gmail.com
To: "wxPython-users@lists.wxwidgets.org" wxPython-users@lists.wxwidgets.org
Sent: Tuesday, September 2, 2008 11:51:06 AM
Subject: [wxpython-users] [Half-OT]: Starting a compiled app on Linux

Hi All,

let's suppose for a moment that I have compiled a wxPython

application into a Linux “executable” using cx_Freeze. If I go to the
directory where the compiled app lives and double click on it (using
the File Browser), it starts fine and it works. However, if I use the
Linux terminal and simply type:

user@ubuntu8041:~/Desktop/GUI2Exe/samples/cx_Freeze$ wxapp

I get this message:

bash: wxapp: command not found

Huh? But it’s there! And it also has all the permission in the
universe (write/read/execute/playbasketball and whatever). Something
similar happens when I try to start it from python using:

os.spawnl(os.P_NOWAIT, exeNam)

I get this:

Traceback (most recent call last):
File “”, line 6, in
File “main.py”, line 101, in
zipimport.ZipImportError:
can’t find module ‘main__’

… I am a bit puzzled… sorry for the very noob question, but what
am I missing? What is the equivalent command for “double-click on a
file” in Linux command line?

Thank you for your suggestions.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users