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

Ben Kaplan bskaplan14 at yahoo.com
Tue Sep 2 09:06:12 PDT 2008


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 at gmail.com>
To: "wxPython-users at lists.wxwidgets.org" <wxPython-users at 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 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/
_______________________________________________
wxpython-users mailing list
wxpython-users at lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080902/5df97946/attachment.htm


More information about the wxpython-users mailing list