BTW, here's an example of the library issues (issue #2)...
ImportError: Failure linking new module:
/usr/lib/libwx_macud-2.5.3.dylib: dyld:
/Users/panther/Desktop/MasterBackup.app/Contents/MacOS/MyBackupProg can't
open library: /usr/lib/libwx_macud-2.5.3.dylib (No such file or
directory, errno = 2)
FYI,
-Matt
On Wed, 14 Sep 2005, Matt wrote:
> Hi, all!
>
> I have a Python program that uses wxPython, and the goal is for it to be
> multi-platform. It runs fine on Windows and Solaris, and even runs OK
> when run directly from the command line on OS X. However, once I try to
> make it a .app, everything goes south:
>
> 1) On Panther, no matter whether I used XCode (I got PyObjC) or py2app
> directly, it built, but then launched and quit with a mysteriously
> unhelpful bus error (it runs JUST FINE when launched via its own, non-.app
> form).
>
> 2) I built it on Tiger and it now actually runs (go figure), BUT if I take
> it over to any other system (Tiger, Panther or other), it fails. It seems
> like it is not adding all of the libraries, so I keep manually doing so,
> but now apparently no matter what, py2app (XCode uses this too) will NOT
> include the libraries included with the system, so it still fails on any
> system but my own?
> Is there a magic trick to deploying Python apps on Mac OS X?
>
> 3) Even when it is working, I need to be able to install it and have it
> run on launch with a --silent parameter (possibly for non-administrator
> users). As a test, I added it manually to my admin account's login items,
> but even if I edit the .plist file, it will NOT accept the parameter (it
> seems to ignore the path after it hits the .app folder), whether the path
> goes into Contents, or stops at the .app folder. If I am not doing an
> authenticated install, then cron won't help, yes? no? How can I allow
> simple users to choose and then have my program set this up for them if
> they may not be admins, and then how to add parameters to the launch?
>
> 4) When it runs in silent mode, it stays in the Dock, but when I click to
> it, there is no way to get it to kick-off its GUI mode, so it just sits
> there, unless I quit and relaunch without the --silent flag. I really
> hope I don't have to get crazy into a Mac interface just for this
> (remember, multi-platform is the issue and justifying a Mac version was
> enough, let alone all the extra work in keeping-up an entire Mac
> interface just to kick-off some Python code), but I'm not sure if I'm
> even heading in the right directions anymore...
> Maybe I just need to add a simple menu option that will kick-off the GUI
> on OS X somehow?
>
> Any input, ideas, resources or anything else are very much appreciated!
>
> Thanks,
> -Matt
>
>
> Matthew Kozak
> Rutgers University-Camden
> email@hidden
>
> **************************************************************************
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety." -Ben Franklin
> **************************************************************************
>
Matthew Kozak
Rutgers University-Camden
email@hidden
**************************************************************************
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -Ben Franklin
**************************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Student-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/student-dev/email@hidden
This email sent to email@hidden