i tried in the cx_freeze github issue tracker but got no replies abou 
this, apologies if it's bad manners to post both there and on this list...

hi there, i'm trying to use cx_freeze to bundle a python 3.6.1 gui app 
on osx 10.10.5 but encountering some problems i'm at a loss how to 
troubleshoot.

build and build_exe work fine, however, when i run with bdist_mac i get 
the following:
build
... runs fine
build_exe
... runs fine
then i get output as follow:
create_plist()
setRelativeReferencePaths()
@loader_path/.dylibs/liblcms2.2.dylib

setRelativeReferencePaths()
then a whole series of errors like this (one for each library file):

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: 
input file: 
build/ImageCat.app/Contents/MacOS/lib/python3.6/collections/init.pyc is 
not a Mach-O file
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: 
input file: 
build/ImageCat.app/Contents/MacOS/lib/python3.6/collections/abc.pyc is 
not a Mach-O file
[...]
then:
error: can't copy '@loader_path/.dylibs/liblcms2.2.dylib': doesn't exist 
or not a regular file

after all this there is no dist folder created (or nothing in it if 
already there).

in the build folder there is a bundled .app created, however if i try to 
run this it just flashes up in the dock for a second and then aborts.

however, if i navigate inside the created app bundle to the MacOS folder 
and run the executable there it runs as expected!!

so, my questions are:
how can i get the bdist_mac to complete?
why does the bundled app instantly abort while the executable runs properly?
how can i debug what's happening when the bundled app fails to run properly?

tia for any help.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to