Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On a fresh Mac OSX 10.8 install, I've installed Quantum GIS from Kingchaos binaries and it's running fine. I'm trying to develop a plugin for QGIS using Plugin Builder. The skel that Plugin Builder produces should work off-the-shelf, but it does not compile using the makefile. Somewhere python can't find (, and it searches for the /Users/kyngchaos/... path. This user does not exist on my system:(

Here are my ENVS on .profile:

export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
export PYTHONPATH=/Applications/
export DYLD_LIBRARY_PATH="/Applications/"
export PATH="/Applications/$PATH"

Here is the ouptput of make:

pyuic4 -o ui_teste.ui
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/ can't open file '/Users/kyngchaos/Applications/qgis-python27/Applications/': [Errno 2] No such file or directory
make: *** [] Error 2

Thanks for reading.

share|improve this question

A hackish workaround would be to create a symlink with that username to your own home dir. But it seems either or ui_teste.ui has that path hardcoded, so check them out (or search the whole hierarchy where they are for "kyngchaos"). There's also a chance the pyqt4 package you installed is buggy, but first try the previous suggestion.

share|improve this answer
Hi, thanks for helping! The fix was, edit /Applications/ and correct the path, like this: #!/bin/sh exec pythonw2.7 /Applications/ ${1+"$@"} – Arthur Portas Sep 18 '12 at 14:35

I have recently committed a fix for this in the CMake build commands. I would appreciate if you can test the resultant file under Mt. Lion, which would have the contents:

exec pythonw2.7 "$(/usr/bin/dirname "$0")/../../Resources/python/PyQt4/uic/" ${1+"$@"}

This fix is in the nightly Mac builds available here. The fix should allow you to move the app wherever you like in the file system (no hard-coded path). If you do move the app from /Applications remember to update your PYTHONPATH accordingly for plugin development.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.