Install fail on OSX 10.10.5

Issue #140 closed
Andrew Gardner
created an issue

Running OSX 10.10.5 with anaconda python distribution, Xcode and command line tools. These commands try to install pyobc 3.04.

env CC=clang pip install -U pyobjc-core # seems fine env CC=clang pip install -U pyobjc # fails

Suggestions?

======

Installing collected packages: pyobjc-framework-CoreLocation Running setup.py install for pyobjc-framework-CoreLocation Complete output from command /Users/foo/anaconda/envs/testpyobjc/bin/python -c "import setuptools, tokenize;file='/private/var/folders/yn/p1zc_rgj17qdtmc5x7w8sqr00000gp/T/pip-build-957PFU/pyobjc-framework-CoreLocation/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/yn/p1zc_rgj17qdtmc5x7w8sqr00000gp/T/pip-aqKul4-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py overriding build_packages to copy PyObjCTest running build_ext building 'CoreLocation._CoreLocation' extension clang -fno-strict-aliasing -I/Users/foo/anaconda/envs/testpyobjc/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.macosx-10.5-x86_64-2.7/pyobjc-include -I/Users/foo/anaconda/envs/testpyobjc/include/python2.7 -c Modules/_CoreLocation.m -o build/temp.macosx-10.5-x86_64-2.7/Modules/_CoreLocation.o -DPyObjC_BUILD_RELEASE=1010 In file included from Modules/_CoreLocation.m:5: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h:22: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h:179:33: error: 'CLProximity' is unavailable: not available on OS X @Property (readonly, nonatomic) CLProximity proximity; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h:37:28: note: 'CLProximity' has been explicitly marked unavailable here typedef NS_ENUM(NSInteger, CLProximity) { ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:280:30: note: expanded from macro 'NS_ENUM' #define NS_ENUM(...) CF_ENUM(VA_ARGS) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:127:88: note: expanded from macro 'CF_ENUM' #define CF_ENUM(...) CF_ENUM_GET_MACRO(VA_ARGS, CF_NAMED_ENUM, CF_ANON_ENUM)(VA_ARGS) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:102:74: note: expanded from macro 'CF_NAMED_ENUM' #define __CF_NAMED_ENUM(_type, _name) enum _name : _type _name; enum _name : _type ^ 1 error generated. error: command 'clang' failed with exit status 1

----------------------------------------

Command "/Users/foo/anaconda/envs/testpyobjc/bin/python -c "import setuptools, tokenize;file='/private/var/folders/yn/p1zc_rgj17qdtmc5x7w8sqr00000gp/T/pip-build-957PFU/pyobjc-framework-CoreLocation/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/yn/p1zc_rgj17qdtmc5x7w8sqr00000gp/T/pip-aqKul4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/yn/p1zc_rgj17qdtmc5x7w8sqr00000gp/T/pip-build-957PFU/pyobjc-framework-CoreLocation

Comments (7)

  1. Ronald Oussoren repo owner

    This should be fixed with PyObjC 3.1.1 that was released earlier this week.

    I haven't tested with Anaconda myself, but did test with the Python.org distribution (various versions, on a number of OSX versions)

  2. Log in to comment