Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I seriously need to install Xcode and compile PyObjC as a result of 1.7.6 update?

There must be an easier way.

I get this warning when attempting to start my app today:

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/file_watcher.py:97:

UserWarning: Detecting source code changes is not supported because your Python version does not include PyObjC (http://pyobjc.sourceforge.net/). Please install PyObjC or, if that is not practical, file a bug at http://code.google.com/p/appengine-devappserver2-experiment/issues/list.

like image 703
Jay Kyburz Avatar asked Mar 20 '13 01:03

Jay Kyburz


1 Answers

The PyObjC installer only requires Xcode because it requires a compiler. However, you can easily get a compiler without downloading Xcode.

Just click this link, and sign in with your Apple Developer ID, or register for a free Apple Developer Account if you don't already have one. Then search the page for the Command Line Tools, download them, and install them.

Once you have installed the Command Line Tools, you can install PyObjC using the instructions on the website.

The website details how to install using either pip, easy_install, or manually. I will briefly outline the first two methods below (manual installation is slightly more involved, and you should read the instructions on the site.):

pip:

env CC=clang pip install -U pyobjc-core
env CC=clang pip install -U pyobjc

easy_install:

easy_install -U pyobjc-core
easy_install -U pyobjc

manual installation:

Scroll to the end of this webpage, and read the pertinent information.

like image 175
daviewales Avatar answered Sep 21 '22 23:09

daviewales