Peuchele bio photo

Peuchele

Pedí pollo que yo pago la diferencia!

Email

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:

sudo pip-2.7 install distribute
sudo pip-2.7 install -U pyobjc     # You will get an error
sudo sed -i.bak 's/use_2to3 = True/use_2to3 = False/g' ./build/pyobjc-core/setup.py
cd build/pyobjc-core/
sudo python setup.py install

That’s it!