Quick recipe to enable source code change detection on the GoogleAppEngineLauncher (Mac OS X Lion).
If you take a look to the app engine dev server logs, you’ll probably see the following message:
/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.
That basically means that you need to install PyObjC in your python environment. Turns out it is not that straight forward since neither pip install pyobjc
nor easy_install pyobjc
seems to work, at least in my machine, so I googled and found the following step-by-step.
This link should be the answer to your problems: https://github.com/pypa/pip/issues/11
HOWEVER -obviously there is a but, otherwise I wouldn’t be writing this down- I needed to modify the step-by-step for me, because I wanted to install PyObjC in my local Python 2.7 environment. Here it goes:
1) sudo pip-2.7 install distribute
2) sudo pip-2.7 install -U pyobjc
— You will get an error
3) sudo sed -i.bak 's/use_2to3 = True/use_2to3 = False/g' ./build/pyobjc-core/setup.py
4) cd build/pyobjc-core/
5) sudo python setup.py install
That’s it!