On 20 mars 09, at 15:19, Smith, Jeff wrote:

I have built Python and cx_Freeze on Mac OS X 10.5 using the latest xcode toolset. Everything works fine until I go to actually freeze an executable.

Then I get the following errors:

copying /opt/tcdevenv/Darwin96i386/lib/python2.5/site-packages/ cx_Freeze/bases/Console -> /Users/jsmith/tmp/dist/test
sh: ldd: command not found
writing zip file /Users/jsmith/tmp/dist/test

  Name                      File
  ----                      ----
m UserDict /opt/tcdevenv/Darwin96i386/lib/python2.5/ UserDict.py
m __builtin__
m __main__                  test.py
m _codecs
m _sre
m _types
m array /opt/tcdevenv/Darwin96i386/lib/python2.5/ lib-dynload/array.so m codecs /opt/tcdevenv/Darwin96i386/lib/python2.5/ codecs.py m copy /opt/tcdevenv/Darwin96i386/lib/python2.5/ copy.py m copy_reg /opt/tcdevenv/Darwin96i386/lib/python2.5/ copy_reg.py m cx_Freeze__init__ /opt/tcdevenv/Darwin96i386/lib/python2.5/ site-packages/cx_Freeze/initscripts/Console.py P encodings /opt/tcdevenv/Darwin96i386/lib/python2.5/ encodings/__init__.py m encodings.aliases /opt/tcdevenv/Darwin96i386/lib/python2.5/ encodings/aliases.py
m errno
m imp
m itertools /opt/tcdevenv/Darwin96i386/lib/python2.5/ lib-dynload/itertools.so m linecache /opt/tcdevenv/Darwin96i386/lib/python2.5/ linecache.py m os /opt/tcdevenv/Darwin96i386/lib/python2.5/ os.py m popen2 /opt/tcdevenv/Darwin96i386/lib/python2.5/ popen2.py
m posix
m posixpath /opt/tcdevenv/Darwin96i386/lib/python2.5/ posixpath.py
m pwd
m re /opt/tcdevenv/Darwin96i386/lib/python2.5/ re.py m repr /opt/tcdevenv/Darwin96i386/lib/python2.5/ repr.py m sre_compile /opt/tcdevenv/Darwin96i386/lib/python2.5/ sre_compile.py m sre_constants /opt/tcdevenv/Darwin96i386/lib/python2.5/ sre_constants.py m sre_parse /opt/tcdevenv/Darwin96i386/lib/python2.5/ sre_parse.py m stat /opt/tcdevenv/Darwin96i386/lib/python2.5/ stat.py
m sys
m types /opt/tcdevenv/Darwin96i386/lib/python2.5/ types.py m warnings /opt/tcdevenv/Darwin96i386/lib/python2.5/ warnings.py
m zipimport
m zlib /opt/tcdevenv/Darwin96i386/lib/python2.5/ lib-dynload/zlib.so

copying /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/ array.so -> /Users/jsmith/tmp/dist/array.so
sh: ldd: command not found
copying /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/ itertools.so -> /Users/jsmith/tmp/dist/itertools.so
sh: ldd: command not found
copying /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/zlib.so -> /Users/jsmith/tmp/dist/zlib.so
sh: ldd: command not found

Well, I might be wrong but it can be because the ldd command does not exist on Mac OS X ;-)

Joke aside, cx_Freeze uses the ldd utility to figure out dependencies for executables and dynamic libraries. Mac OS X seems to be quite different from other Unices here as it doesn't have any shared object files (.so), but dynamic libraries (.dylib), which are apparently quite different. So figuring out dependencies for these is probably quite different too, which explains why the ldd command is nowhere to be seen.

BTW, to create standalone executables from Python scripts for the Mac, I've seen that there is a specific tool called py2app [1]. I never tested it myself, but since it seems specifically targeted to the Mac OS X platform, you might be luckier with it...

HTH.

[1] http://undefined.org/python/py2app.html

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to