#291 closed defect (fixed)

building mac .app - fails with unknown load command %d

Reported by: terrell Owned by: zooko
Priority: major Milestone: 1.5.0
Component: packaging Version: 0.7.0
Keywords: mac macintosh Cc:
Launchpad Bug:

Description

These may be separate ticketable items... feel free to split/combine with others.

I needed to install two other things before mac.app would attempt to build.

py2app

[10:51:19:trel:~/Desktop/tahoestuff/tahoefromdarcs/mac] make
python setup.py py2app --no-chdir
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    import py2app
ImportError: No module named py2app
make: *** [build] Error 1

and

modulegraph

Searching for modulegraph>=0.7.2dev
Reading http://pypi.python.org/simple/modulegraph/
Reading http://undefined.org/python/#modulegraph
No local packages or download links found for modulegraph>=0.7.2dev
error: Could not find suitable distribution for Requirement.parse('modulegraph>=0.7.2dev')

both were pulled and compiled without trouble from subversion:

- http://svn.pythonmac.org/py2app/py2app/trunk/
- http://svn.pythonmac.org/modulegraph/modulegraph/trunk/

When the mac.app did finally begin the build, I got this error:

[11:06:45:trel:~/Desktop/tahoestuff/tahoefromdarcs/mac/dist] make
...snip...
*** creating application bundle: Allmydata Tahoe ***
copying build/bdist.macosx-10.3-fat/python2.5-standalone/app/site-packages.zip -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Resources/lib/python2.5
copying /Library/Frameworks/Python.framework/Versions/2.5/Python -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Frameworks/Python.framework/Versions/2.5
copying /Library/Frameworks/Python.framework/Versions/2.5/Resources/Info.plist -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources
copying /Library/Frameworks/Python.framework/Versions/2.5/Resources/version.plist -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources
copying /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Frameworks/Python.framework/Versions/2.5/include/python2.5
copying /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Makefile -> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/dist/Allmydata Tahoe.app/Contents/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 579, in _run
    self.run_normal()
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 650, in run_normal
    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 767, in create_binaries
    platfiles = mm.run()
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachOStandalone.py", line 102, in run
    mm.run_file(fn)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachOGraph.py", line 66, in run_file
    m = self.createNode(MachO, pathname)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachOStandalone.py", line 23, in createNode
    res = super(FilteredMachOGraph, self).createNode(cls, name)
  File "build/bdist.macosx-10.3-fat/egg/altgraph/ObjectGraph.py", line 148, in createNode
    m = cls(name, *args, **kw)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 61, in __init__
    self.load(file(filename, 'rb'))
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 71, in load
    self.load_fat(fh)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 82, in load_fat
    self.load_header(fh, arch.offset, arch.size)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 106, in load_header
    hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 146, in __init__
    self.load(fh)
  File "build/bdist.macosx-10.3-fat/egg/macholib/MachO.py", line 178, in load
    raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
ValueError: Unknown load command: 27
> /Users/trel/Desktop/tahoestuff/tahoefromdarcs/mac/build/bdist.macosx-10.3-fat/egg/macholib/MachO.py(178)load()
(Pdb)


Change History (8)

comment:1 Changed at 2008-02-14T00:04:18Z by warner

  • Component changed from unknown to packaging
  • Owner changed from nobody to somebody

comment:2 Changed at 2008-02-14T00:04:25Z by warner

  • Keywords mac added

comment:3 Changed at 2008-03-08T02:52:47Z by zooko

  • Keywords macintosh added
  • Milestone changed from undecided to 0.10.0
  • Owner changed from somebody to robk

comment:4 Changed at 2008-05-29T22:21:39Z by warner

  • Milestone changed from 1.1.0 to 1.2.0

comment:5 Changed at 2009-06-30T12:38:52Z by zooko

  • Milestone changed from 1.5.0 to eventually

comment:6 Changed at 2009-07-02T13:15:44Z by zooko

  • Milestone changed from eventually to 1.5.0
  • Owner changed from robk to zooko
  • Status changed from new to assigned

Hey my Mac buildbot just got this failure:

http://allmydata.org/buildbot/builders/zooko ootles Mac-amd64 10.4/builds/198/steps/mac_exe/logs/stdio

comment:8 Changed at 2009-07-03T20:12:24Z by zooko

  • Resolution set to fixed
  • Status changed from assigned to closed

This was fixed by 7bf452e4bc93a0cd, thus revealing another bug in the Mac build, which is the subject of #668.

Note: See TracTickets for help on using tickets.