Re: pyobjc 2.3 install fails

Mark Sienkiewicz <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
>> error: Could not find required distribution pyobjc-core
>>
>> As far as I can tell, some part of it must be missing from pypi.  Any ideas?
> 
> That's odd, pyobjc-core is on pypi and should work just fine.
> 
> Could you try "easy_install pyobjc-core==2.3" followed running "python setup.py install" for pyobjc itself again?


I did this:

setenv PYTHONPATH     /Users/sienkiew/py/lib/python2.7/site-packages
easy_install --prefix ~/py pyobjc-core==2.3

It installed something that involved compiling a lot of C code.  During the install, there were a few things that look broken, though:


libtool: link: ar cru .libs/libxml2.a  SAX.o entities.o encoding.o error.o parserInternals.o parser.o tree.o hash.o list.o xmlIO.o xmlmemory o uri.o valid.o xlink.o HTMLparser.o HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o nanohttp.o nanoftp.o DOCBparser.o catalog.o globals o threads.o c14n.o xmlstring.o xmlregexp.o xmlschemas.o xmlschemastypes.o xmlunicode.o xmlreader.o relaxng.o dict.o SAX2.o xmlwriter.o legac .o chvalid.o pattern.o xmlsave.o xmlmodule.o schematron.o
ranlib: file: .libs/libxml2.a(SAX.o) has no symbols
ranlib: file: .libs/libxml2.a(xlink.o) has no symbols
ranlib: file: .libs/libxml2.a(HTMLparser.o) has no symbols
ranlib: file: .libs/libxml2.a(HTMLtree.o) has no symbols
... repeats for about 20 more files ...

Later, it finds the same problem again:

libtool: install: ranlib /private/var/folders/1w/1wzkS8Y4H44BBu-c3gTR7k++2Ws/-Tmp-/easy_install-7MaF7K/pyobjc-core-2.3/build/libxml/lib/libx l2.a
ranlib: file: /private/var/folders/1w/1wzkS8Y4H44BBu-c3gTR7k++2Ws/-Tmp-/easy_install-7MaF7K/pyobjc-core-2.3/build/libxml/lib/libxml2.a(SAX.o  has no symbols
ranlib: file: /private/var/folders/1w/1wzkS8Y4H44BBu-c3gTR7k++2Ws/-Tmp-/easy_install-7MaF7K/pyobjc-core-2.3/build/libxml/lib/libxml2.a(xlink o) has no symbols
...


And later:

Modules/objc/test/properties.m:24: warning: Mac OS X version 10.5 or later is needed for use of property
Modules/objc/test/properties.m:25: warning: Mac OS X version 10.5 or later is needed for use of property
Modules/objc/test/properties.m:26: warning: Mac OS X version 10.5 or later is needed for use of property
Modules/objc/test/properties.m:27: warning: Mac OS X version 10.5 or later is needed for use of property
Modules/objc/test/properties.m:27: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
Modules/objc/test/properties.m:27: warning: 'assign' attribute (default) not appropriate for non-gc object property 'prop4'


It is 10.5.  system_profiler says "System Version: Mac OS X 10.5.8 (9L31a) )"

And finally:

Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/__init__.py (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/arrays.so (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/block.so (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/cfsocket.so (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/clinmeth.so (namespace package)
... another 90-100 lines of this, some for .so and some for .py files
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/testclassandinst.so (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/testoutputinitializer.so (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/voidpointer.so (namespace package)
Adding pyobjc-core 2.3 to easy-install.pth file

Installed /Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.4-i386.egg
Processing dependencies for pyobjc-core==2.3
Finished processing dependencies for pyobjc-core==2.3


The easy_install step did not produce a working pyobjc:

>>> import pyobjc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyobjc
>>> import sys
>>> sys.path
['', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.4-i386.egg', '/usr/stsci/pyssg/2.7/distribute-0.6.10-py2.7.egg', '/usr/stsci/pyssg/2.7/Jinja2-2.2.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Pygments-1.1.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Sphinx-1.0.5-py2.7.egg', '/usr/stsci/pyssg/2.7/numpydoc-0.4-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages', '/usr/stsci/pyssg/2.7', '/usr/stsci/pyssg/2.7/PIL', '/usr/stsci/pyssg/Python-2.7/lib/python27.zip', '/usr/stsci/pyssg/Python-2.7/lib/python2.7', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-darwin', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-mac', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-tk', '/usr/stsci/pyssg/Python-2.7/
 lib/python2.7/lib-old', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-dynload', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/site-packages', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/site-pa
ckages/setuptools-0.6c11-py2.7.egg-info']
>>> 


So I continued with the setup.py install step:

 python setup.py install --prefix ~/py

It also skipped a lot of files:


Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/__init__.py (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/test_caanimation.py (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/test_cabase.py (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/test_cacifilteradditions.py (namespace package)
Skipping installation of build/bdist.macosx-10.4-i386/egg/PyObjCTest/test_caconstraintlayoutmanager.py (namespace package)
...

That also did not produce a working system, but I have a lot more on pythonpath:



>>> import pyobjc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyobjc
>>> import sys
>>> sys.path
['', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_ScriptingBridge-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_QTKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_PubSub-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_InterfaceBuilderKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_InstantMessage-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_InputMethodKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_D
 ictionaryServices-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_Collaboration-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framew
ork_CalendarStore-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_XgridFoundation-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_WebKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_SystemConfiguration-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_SyncServices-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_SearchKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_ScreenSaver-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_Quartz-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framewor
 k_PreferencePanes-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_Message-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_La
unchServices-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_LatentSemanticMapping-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_InstallerPlugins-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_FSEvents-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_ExceptionHandling-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_CoreText-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_CoreData-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_Cocoa-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framewor
 k_CFNetwork-2.3-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_Automator-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc
_framework_AppleScriptKit-2.3-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages/pyobjc_framework_AddressBook-2.3-py2.7.egg', '/usr/stsci/pyssg/2.7/distribute-0.6.10-py2.7.egg', '/usr/stsci/pyssg/2.7/Jinja2-2.2.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Pygments-1.1.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Sphinx-1.0.5-py2.7.egg', '/usr/stsci/pyssg/2.7/numpydoc-0.4-py2.7.egg', '/Users/sienkiew/py/lib/python2.7/site-packages', '/usr/stsci/pyssg/2.7', '/usr/stsci/pyssg/2.7/PIL', '/usr/stsci/pyssg/Python-2.7/lib/python27.zip', '/usr/stsci/pyssg/Python-2.7/lib/python2.7', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-darwin', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-mac', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/l
 ib-tk', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-old', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-dynload', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/site-packages', '/usr/stsci/p
yssg/Python-2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']


I also tried just "easy_install --prefix ~/py pyobjc==2.2"; it also did not result in a system where I could "import pyobjc".  In that instance, sys.path was:

['', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_XgridFoundation-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_WebKit-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_SystemConfiguration-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_SyncServices-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_SearchKit-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_ScreenSaver-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_Quartz-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienk
 iew/py2/lib/python2.7/site-packages/pyobjc_framework_PreferencePanes-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_Message-2.2-py2.7.egg', '/Users/sienkie
w/py2/lib/python2.7/site-packages/pyobjc_framework_LaunchServices-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_LatentSemanticMapping-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_InstallerPlugins-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_FSEvents-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_ExceptionHandling-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_CoreText-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_CoreData-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_Cocoa-2.2-py2.7-macosx-10.4-i386.egg', '/U
 sers/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_CFNetwork-2.2-py2.7-macosx-10.4-i386.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_Automator-2.2-py2.
7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_AppleScriptKit-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_framework_AddressBook-2.2-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages/pyobjc_core-2.2-py2.7-macosx-10.4-i386.egg', '/usr/stsci/pyssg/2.7/distribute-0.6.10-py2.7.egg', '/usr/stsci/pyssg/2.7/Jinja2-2.2.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Pygments-1.1.1-py2.7.egg', '/usr/stsci/pyssg/2.7/Sphinx-1.0.5-py2.7.egg', '/usr/stsci/pyssg/2.7/numpydoc-0.4-py2.7.egg', '/Users/sienkiew/py2/lib/python2.7/site-packages', '/usr/stsci/pyssg/2.7', '/usr/stsci/pyssg/2.7/PIL', '/usr/stsci/pyssg/Python-2.7/lib/python27.zip', '/usr/stsci/pyssg/Python-2.7/lib/python2.7', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-darwin', '/usr/stsci/
 pyssg/Python-2.7/lib/python2.7/plat-mac', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-tk', '/usr/stsci/pyssg/Pytho
n-2.7/lib/python2.7/lib-old', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/lib-dynload', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/site-packages', '/usr/stsci/pyssg/Python-2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']


At this point, I'm thinking there must be something odd about my system that two different versions do not work at all, even when installed with easy_install.  Unfortunately, I don't really know enough about easy_install to know what questions to ask next.  Do you have any suggestions?

Mark S.


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.