Thread: [Pyobjc-dev] swig error on build
Brought to you by:
ronaldoussoren
|
From: Barry W. <bar...@gm...> - 2008-01-16 18:56:17
|
I'm unable to build the latest pyobjc trunk from SVN on OS X 10.5.1.
I'm using the system python and built-in swig (1.3.31 at
/usr/bin/swig). I tried updating setuptools and pyrex, with no avail.
>From the pyobjc-core directory:
siegfried:pyobjc-core barry$ rm -rf build;python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.3-i386-2.5
creating build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/__init__.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_bindglobals.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_bridges.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_bridgesupport.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_category.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_compat.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_convenience.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_descriptors.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_dyld.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_framework.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_functions.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_gnustep.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_locking.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_protocols.py -> build/lib.macosx-10.3-i386-2.5/objc
copying Lib/objc/_pythonify.py -> build/lib.macosx-10.3-i386-2.5/objc
creating build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/__init__.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/fnd.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/keyvaluehelper.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_allocatebuffer.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_archiving.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_bundleFunctions.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_bundleVariables.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_classandinst.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_clinmeth.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_conversion.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_copying.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_corefoundation.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_ctests.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_exceptions.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_filepointer.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_identity.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_imp.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_initialized.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_ivar.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_keyvalue.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_leaks.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_locking.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata_function.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata_imp.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata_py.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata_py2.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_metadata_py2py.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_methodaccess.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_methodedits.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_methods.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_methods2.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_NULL.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_objc.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_opaque.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_outputinitializer.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_pickle.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_posing.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_protected.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_protocol.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_protocolNamed.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_regr.py -> build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_signatures.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_sockaddr.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_splitsig.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_structpointer.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_structs.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_subclass.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_varargs.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_voidpointer.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
copying Lib/objc/test/test_weakref.py ->
build/lib.macosx-10.3-i386-2.5/objc/test
creating build/lib.macosx-10.3-i386-2.5/PyObjCTools
copying Lib/PyObjCTools/__init__.py ->
build/lib.macosx-10.3-i386-2.5/PyObjCTools
copying Lib/PyObjCTools/KeyValueCoding.py ->
build/lib.macosx-10.3-i386-2.5/PyObjCTools
copying Lib/PyObjCTools/MachSignals.py ->
build/lib.macosx-10.3-i386-2.5/PyObjCTools
copying Lib/PyObjCTools/Signals.py -> build/lib.macosx-10.3-i386-2.5/PyObjCTools
running build_ext
building 'objc._objc' extension
Traceback (most recent call last):
File "setup.py", line 329, in <module>
'': ['*.bridgesupport'],
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/Library/Python/2.5/site-packages/setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py",
line 46, in run
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 290, in run
self.build_extensions()
File "/Library/Python/2.5/site-packages/Pyrex-0.9.6.4-py2.5.egg/Pyrex/Distutils/build_ext.py",
line 82, in build_extensions
self.build_extension(ext)
File "/Library/Python/2.5/site-packages/setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py",
line 175, in build_extension
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 453, in build_extension
sources = self.swig_sources(sources, ext)
File "/Library/Python/2.5/site-packages/setuptools-0.6c7-py2.5.egg/setuptools/command/build_ext.py",
line 77, in swig_sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)
Can any of the Leopard/pyobjc/swig gurus offer any suggestions?
Thanks!
Barry
|
|
From: Ronald O. <ron...@ma...> - 2008-01-17 10:06:31
Attachments:
smime.p7s
|
On 16 Jan, 2008, at 19:56, Barry Wark wrote: > I'm unable to build the latest pyobjc trunk from SVN on OS X 10.5.1. > I'm using the system python and built-in swig (1.3.31 at > /usr/bin/swig). I tried updating setuptools and pyrex, with no avail. That's odd. PyObjC doesn't even use swig. What happesn when you temporarily uninstall pyrex? Ronald |
|
From: Barry W. <bar...@gm...> - 2008-01-17 19:43:42
|
Ronald, Thanks! That did the trick. Weird. barry On Jan 17, 2008 2:06 AM, Ronald Oussoren <ron...@ma...> wrote: > > On 16 Jan, 2008, at 19:56, Barry Wark wrote: > > > I'm unable to build the latest pyobjc trunk from SVN on OS X 10.5.1. > > I'm using the system python and built-in swig (1.3.31 at > > /usr/bin/swig). I tried updating setuptools and pyrex, with no avail. > > That's odd. PyObjC doesn't even use swig. What happesn when you > temporarily uninstall pyrex? > > Ronald > > |
|
From: Robert K. <rob...@gm...> - 2008-01-17 20:12:19
|
Ronald Oussoren wrote: > > On 16 Jan, 2008, at 19:56, Barry Wark wrote: > >> I'm unable to build the latest pyobjc trunk from SVN on OS X 10.5.1. >> I'm using the system python and built-in swig (1.3.31 at >> /usr/bin/swig). I tried updating setuptools and pyrex, with no avail. > > That's odd. PyObjC doesn't even use swig. What happesn when you > temporarily uninstall pyrex? Pyrex uses the same mechanism that distutils uses for SWIG. With the Pyrex 0.9.6 release, Greg changed the way he was using it. This broke setuptools' use of the API. Phillip has a fix in SVN. easy_install -U "setuptools==dev06" -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |