[Pythonmac-SIG] PyObjC/Py2App build problem

Michael Glassford glassfordm at hotmail.com
Thu Jun 1 18:32:45 CEST 2006


To try building a universal binary version of an application I'm working 
on, I'm trying to get and build a new version of PyObjC and Py2App. I've 
successfully installed the correct version of Python from 
http://pythonmac.org/packages/py24-fat/ and have gotten the latest 
PyObjC from http://svn.red-bean.com/pyobjc/trunk. It seemed to build OK 
with "python setup.py build" (at least, I didn't see any errors). 
Running "python setup.py test" got 5 errors (the expected failure of 
dejagnu.libffi.call.cls_1_1byte and dejagnu.libffi.call.cls_2byte and 
three others--I'll paste them at the end of this message in case they're 
important, though they don't look like they have anything to do with my 
problem).

My main problem is that when I run "setup.py bdist_mpkg --open", after 
building for a while, I get this error:



running build_html
- Doc/api-notes-macosx.txt (skipped: up to date)
- Doc/C-API.txt (skipped: up to date)
- Doc/coding-style.txt (skipped: up to date)
- Doc/gnustep.txt (skipped: up to date)
- Doc/index.txt (skipped: up to date)
- Doc/intro.txt (skipped: up to date)
- Doc/protocols.txt (skipped: up to date)
- Doc/PyObjCTools.txt (skipped: up to date)
- Doc/release-process.txt (skipped: up to date)
- Doc/structure.txt (skipped: up to date)
- Doc/TODO.txt (skipped: up to date)
- Doc/tutorial_reading.txt (skipped: up to date)
- Doc/wrapping.txt (skipped: up to date)
- Doc/tutorial/tutorial.txt (skipped: up to date)
- Doc/tutorial_embed/extending_objc_with_python.txt (skipped: up to date)
- ./NEWS.txt (skipped: up to date)
- ./Install.txt (skipped: up to date)
- ./ReadMe.txt (skipped: up to date)
- ./Examples/00ReadMe.txt (skipped: up to date)
- ./Installer Package/10.2/ReadMe.txt (skipped: up to date)
- ./Installer Package/10.3/ReadMe.txt (skipped: up to date)
- ./Installer Package/10.4/ReadMe.txt (skipped: up to date)
- ./Xcode/Project Templates/00README.txt
error: /Users/Bob/cvsroot/pyobjc/trunk/pyobjc/source-deps/py2app: No 
such file or directory



If I look in /Users/Bob/cvsroot/pyobjc/trunk/pyobjc/source-deps/, there 
is no py2app directory; there is a py2app-source directory, but that's 
not what it's looking for (for fun, I tried renaming py2app-source to 
py2app, but that didn't make it happy). Is this an error in the build 
script? Do I need to get something that I haven't gotten from svn or 
build something else first?

Thanks for any help,


Mike






Failing unit tests:

======================================================================
ERROR: testImageData 
(AppKit.test.test_nsbitmapimagerep.TestNSBitmapImageRep)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"build/lib.macosx-10.4-fat-2.4/AppKit/test/test_nsbitmapimagerep.py", 
line 42, in testImageData
     singlePlane = objc.allocateBuffer(width*height*3)
TypeError: argument 1 must be impossible<bad format char>, not int

======================================================================
ERROR: testBadLengths (objc.test.test_allocatebuffer.TestAllocateBuffer)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"build/lib.macosx-10.4-fat-2.4/objc/test/test_allocatebuffer.py", line 
7, in testBadLengths
     self.assertRaises(ValueError, objc.allocateBuffer, 0)
   File 
"/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/unittest.py", 
line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
TypeError: argument 1 must be impossible<bad format char>, not int

======================================================================
ERROR: testBuffer (objc.test.test_allocatebuffer.TestAllocateBuffer)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"build/lib.macosx-10.4-fat-2.4/objc/test/test_allocatebuffer.py", line 
11, in testBuffer
     b = objc.allocateBuffer(10000)
TypeError: argument 1 must be impossible<bad format char>, not int



More information about the Pythonmac-SIG mailing list