pyobjc fails to install on OS X 10.10

Issue #171 resolved
Randal
created an issue

I have python 3.5 and I am using a virtual environment with my xcode being 7.2.1. I saw the fix for 10.11 and I tried the fix MACOSX_DEPLOYMENT_TARGET=10.10 pip install pyobjc

When I run that command I get the following error

 building 'Foundation._Foundation' extension
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.macosx-10.10-x86_64-3.5/pyobjc-include -I/Users/rjw/.pyenv/versions/3.5.0/envs/blog_env/include -I/Users/rjw/.pyenv/versions/3.5.0/include/python3.5m -c Modules/_Foundation.m -o build/temp.macosx-10.10-x86_64-3.5/Modules/_Foundation.o -DPyObjC_BUILD_RELEASE=1010 -Wno-deprecated-declarations -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 'clang' failed with exit status 1

    ----------------------------------------
Command "/Users/rjw/.pyenv/versions/3.5.0/envs/blog_env/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/vg/lzbgw_fx4k90zdjn3zy95qt80000gp/T/pip-build-g6elbktj/pyobjc-framework-Cocoa/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/vg/lzbgw_fx4k90zdjn3zy95qt80000gp/T/pip-5gbtjsnn-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rjw/.pyenv/versions/3.5.0/envs/blog_env/include/site/python3.5/pyobjc-framework-Cocoa" failed with error code 1 in /private/var/folders/vg/lzbgw_fx4k90zdjn3zy95qt80000gp/T/pip-build-g6elbktj/pyobjc-framework-Cocoa/

My environment had nothing in it when I started and now using pip freeze I have 

altgraph==0.12
macholib==1.7
modulegraph==0.12.1
py2app==0.10
pyobjc-core==3.1.1

```

Comments (3)

  1. Log in to comment