Re: [Pyobjc-dev] compilation issues on Py3.5, os x 10.10.5
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2016-07-30 07:45:03
|
> On 28 Jul 2016, at 15:43, Diez B. Roggisch <de...@we...> wrote: > > Hi, > > I get the problem quoted below after trying to install pyobjc on my 10.10.5 System, Xcode version 7.2 into a vanilla Python3.5 > > Googling resulted in http://stackoverflow.com/questions/37525929/python-pyobjc-idtopythonprotocolnsurlsessionstreamdelegate-error <http://stackoverflow.com/questions/37525929/python-pyobjc-idtopythonprotocolnsurlsessionstreamdelegate-error>, which again on a vanilla Python 3.5 succeeds installing, but gives the second error below. > > Any suggestions are welcome. For some reason PyObjC thinks it is building with the OSX 10.10 SDK, while it is building with an older SDK. Because of this it tries to reference a symbol that isn’t present in the SDK that is used. The “-isysroot /“ flag in the output below explains the behavior, setup.py cannot deduce the SDK used from the sysroot parameter and therefore assumes the SDK version matches the OSX version. Are you using the 3.5 installer from www.python.org? Ronald > > Cheers, > > Diez > > > Error message for normal install: > > running build_ext > building 'CoreFoundation._inlines' extension > creating build/temp.macosx-10.6-intel-3.5/Modules > /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Ibuild/temp.macosx-10.6-intel-3.5/pyobjc-include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c Modules/_CoreFoundation_inlines.m -o build/temp.macosx-10.6-intel-3.5/Modules/_CoreFoundation_inlines.o -DPyObjC_BUILD_RELEASE=1010 -isysroot / > /usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.5/Modules/_CoreFoundation_inlines.o -o build/lib.macosx-10.6-intel-3.5/CoreFoundation/_inlines.cpython-35m-darwin.so -framework CoreFoundation -isysroot / > building 'CoreFoundation._CoreFoundation' extension > /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Ibuild/temp.macosx-10.6-intel-3.5/pyobjc-include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c Modules/_CoreFoundation.m -o build/temp.macosx-10.6-intel-3.5/Modules/_CoreFoundation.o -DPyObjC_BUILD_RELEASE=1010 -isysroot / > /usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.5/Modules/_CoreFoundation.o -o build/lib.macosx-10.6-intel-3.5/CoreFoundation/_CoreFoundation.cpython-35m-darwin.so -framework CoreFoundation -isysroot / > building 'Foundation._inlines' extension > /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Ibuild/temp.macosx-10.6-intel-3.5/pyobjc-include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c Modules/_Foundation_inlines.m -o build/temp.macosx-10.6-intel-3.5/Modules/_Foundation_inlines.o -DPyObjC_BUILD_RELEASE=1010 -isysroot / > /usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.5/Modules/_Foundation_inlines.o -o build/lib.macosx-10.6-intel-3.5/Foundation/_inlines.cpython-35m-darwin.so -framework Foundation -isysroot / > building 'Foundation._Foundation' extension > /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Ibuild/temp.macosx-10.6-intel-3.5/pyobjc-include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c Modules/_Foundation.m -o build/temp.macosx-10.6-intel-3.5/Modules/_Foundation.o -DPyObjC_BUILD_RELEASE=1010 -isysroot / > In file included from Modules/_Foundation.m:15: > Modules/_Foundation_protocols.m:14:28: error: cannot find protocol declaration for 'NSProgressReporting' > p = PyObjC_IdToPython(@protocol(NSProgressReporting)); Py_XDECREF(p); > ^ > Modules/_Foundation_protocols.m:15:28: error: cannot find protocol declaration for 'NSURLSessionStreamDelegate' > p = PyObjC_IdToPython(@protocol(NSURLSessionStreamDelegate)); Py_XDECREF(p); > ^ > 2 errors generated. > error: command '/usr/bin/clang' failed with exit status 1 > > > > Error message for 3.0.4: > > 28 15:42:29 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: 2016-07-28 15:42:29.169 NotoriousWIG[27812:4040159] NotoriousWIG Error > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: Traceback (most recent call last): > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Users/dir/projects/ableton/notorious-wig/dist/NotoriousWIG.app/Contents/Resources/__boot__.py", line 102, in <module> > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: _run() > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Users/dir/projects/ableton/notorious-wig/dist/NotoriousWIG.app/Contents/Resources/__boot__.py", line 96, in _run > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: exec(compile(source, script, 'exec'), globals(), globals()) > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Users/dir/projects/ableton/notorious-wig/Application.py", line 1, in <module> > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: from ApplicationDelegate import * > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Users/dir/projects/ableton/notorious-wig/ApplicationDelegate.py", line 4, in <module> > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: import objc > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/objc/__init__.py", line 18, in <module> > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: _update() > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/objc/__init__.py", line 15, in _update > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: import objc._objc as _objc > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so, 2): Symbol not found: _PyObject_REPR > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: Expected in: flat namespace > Jul 28 15:42:31 client2087.office.ableton.com <http://client2087.office.ableton.com/> NotoriousWIG[27812] <Notice>: in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/objc/_objc.cpython-35m-darwin.so > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |