1. Ronald Oussoren
  2. pyobjc

Issues

Issue #81 resolved

pyobjc-core 2.5.1 install failing on OSX 10.9.2

Tassilo Selover-Stephan
created an issue

I'm trying to install pyobjc on Mavericks, and running into the "Cannot locate a working compiler" problem. My output reads as follows:

Searching for pyobjc-core==2.5.1
Reading http://pypi.python.org/simple/pyobjc-core/
Best match: pyobjc-core 2.5.1
Downloading https://pypi.python.org/packages/source/p/pyobjc-core/pyobjc-core-2.5.1.tar.gz#md5=931c6cfb040df0d7e26c0898886380cf
Processing pyobjc-core-2.5.1.tar.gz
Running pyobjc-core-2.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ddtu7C/pyobjc-core-2.5.1/egg-dist-tmp-ApuaTN
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
error: Setup script exited with Cannot locate a working compiler

I've got both Xcode and Developer Tools installed from Apple's developer website. Any ideas?

Comments (6)

  1. jeremy low

    Try going into XCode and installing the Command Line Tools (only for XCode 4.x (Edit: This is in XCode Preferences > Downloads)) or typing

    xcode-select --install
    

    if you've got XCode 5. When you try to compile things, you may then get an error about unused command line arguments with the latest compiler. Just add the following line to your .bash_profile and you should be good to go.

    export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
    
  2. Merita Six

    After spending forever manually sorting out the bad modules that wouldn't install here a command to do it for anyone using mac os x 10.9.x with the DEVELOPER command-line tools installed (you need to login to apple developer):

    sudo pip install pyobjc-core pyobjc-framework-Accounts pyobjc-framework-AddressBook pyobjc-framework-AppleScriptKit pyobjc-framework-AppleScriptObjC pyobjc-framework-Automator pyobjc-framework-CFNetwork pyobjc-framework-CalendarStore pyobjc-framework-Cocoa pyobjc-framework-Collaboration pyobjc-framework-CoreData pyobjc-framework-CoreLocation pyobjc-framework-CoreText pyobjc-framework-CoreWLAN pyobjc-framework-DictionaryServices pyobjc-framework-DiskArbitration pyobjc-framework-EventKit pyobjc-framework-ExceptionHandling pyobjc-framework-FSEvents pyobjc-framework-InputMethodKit pyobjc-framework-InstallerPlugins pyobjc-framework-InstantMessage pyobjc-framework-LatentSemanticMapping pyobjc-framework-LaunchServices pyobjc-framework-OpenDirectory pyobjc-framework-PreferencePanes pyobjc-framework-PubSub pyobjc-framework-QTKit pyobjc-framework-Quartz pyobjc-framework-ScreenSaver pyobjc-framework-ScriptingBridge pyobjc-framework-SearchKit pyobjc-framework-ServiceManagement pyobjc-framework-Social pyobjc-framework-StoreKit pyobjc-framework-SyncServices pyobjc-framework-SystemConfiguration pyobjc-framework-WebKit
    
  3. Log in to comment