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

Andrea Gavana andrea.gavana at gmail.com
Tue Sep 2 08:51:06 PDT 2008


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 at 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 "<string>", line 6, in <module>
  File "__main__.py", line 101, in <module>
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/


More information about the wxpython-users mailing list