{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/0ace258306787dcff1e1da1a04304115?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0ace258306787dcff1e1da1a04304115","url":"https://api.github.com/users/jonseymour","login":"jonseymour","id":207131},"assignee":null,"updated_at":"2011-11-17T14:09:33Z","labels":[],"closed_at":"2011-03-24T22:57:05Z","comments":2,"url":"https://api.github.com/repos/couchapp/couchapp/issues/87","body":"Hi,\r\n\r\nWhen I try to install Couchapp-0.7.5 on a Mac OSX 10.5 box with pip install, I get the following errors:\r\n\r\ngcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I./couchapp/ssl/2.5.1 -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c couchapp/ssl/_ssl2.c -o build/temp.macosx-10.5-i386-2.5/couchapp/ssl/_ssl2.o\r\n\r\ni686-apple-darwin9-gcc-4.0.1: couchapp/ssl/_ssl2.c: No such file or directory\r\n\r\npowerpc-apple-darwin9-gcc-4.0.1: couchapp/ssl/_ssl2.c: No such file or directory\r\n\r\ni686-apple-darwin9-gcc-4.0.1: no input files\r\n\r\npowerpc-apple-darwin9-gcc-4.0.1: no input files\r\n\r\nlipo: can't figure out the architecture type of: /var/tmp//ccOXtlA1.out\r\n\r\nerror: command 'gcc' failed with exit status 1\r\n\r\n----------------------------------------\r\nCommand /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python -c \"import setuptools;__file__='/tmp/pip--dnVIG-build/setup.py';execfile(__file__)\" install --single-version-externally-managed --record /tmp/pip-tLcbCu-record/install-record.txt failed with error code 1\r\n","html_url":"https://github.com/couchapp/couchapp/issues/87","title":"v0.7.5: pip install fails on OSX 10.5","number":87,"id":700943,"created_at":"2011-03-24T14:51:42Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/377404753f2e282445b30d87db5fa472?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"377404753f2e282445b30d87db5fa472","url":"https://api.github.com/users/pulkitsinghal","login":"pulkitsinghal","id":821963},"updated_at":"2011-11-17T14:09:33Z","url":"https://api.github.com/repos/couchapp/couchapp/issues/comments/2776281","body":"I'm faced the same issue and the post above by @jonseymour helped me understand the problem.\r\n\r\nSince I had some difficulty due to multiple version of python being installed on my system: 2.6 and 2.7 but only one version of pip 2.6 ... I am placing the steps I took to make it work here.\r\n\r\nNOTE: Use sudo in front of a command, as and when you need it.\r\n\r\n1) If you try to use the standard pip command without calling out the version it will probably just install 2.6 version for you all over again:\r\n```$ sudo easy_install pip\r\nSearching for pip\r\nBest match: pip 1.0.2\r\nProcessing pip-1.0.2-py2.6.egg\r\npip 1.0.2 is already the active version in easy-install.pth\r\nInstalling pip script to /usr/local/bin\r\nInstalling pip-2.6 script to /usr/local/bin```\r\n\r\n2) Searching your system to check if you even have the correct version of pip 2.7 available is a necessary step to take but what's listed by searching MacPorts (py27-pip) isn't the same thing as the pip-2.7 command\r\n```$ port list | grep pip\r\npy-pip                         @1.0.2          python/py-pip\r\npy-pipedream                   @0.2.0          python/py-pipedream\r\npy25-pip                       @1.0.2          python/py25-pip\r\npy26-pip                       @1.0.2          python/py26-pip\r\npy27-pip                       @1.0.2          python/py27-pip```\r\n\r\n3) Try using the bash shell's tab auto-completion utility to your advantage to find out what you have:\r\n```$ pi\r\npic           pico          piconv-5.12   piconv5.8.9   pidpersec.d   ping6         pip-2.6\r\npic2graph     piconv        piconv5.10.0  pictd         ping          pip```\r\nAs you can see there is no pip-2.7 present according to the above auto-complete.\r\n\r\n4) If you try to run easy install without version spec then it might install the same old 2.6 version again, so check again for 2.7 specific version of easy_install using auto-complete:\r\n```$ easy_install\r\neasy_install      easy_install-2.5  easy_install-2.6  easy_install-2.7```\r\n\r\n5) Use it to install pip-2.7, be very specific:\r\n```$ sudo easy_install-2.7 pip\r\nSearching for pip\r\n...\r\nInstalling pip script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin\r\nInstalling pip-2.7 script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin\r\nInstalled /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg\r\n...```\r\n\r\n6) If the install took place such that pip-2.7 still doesn't show up in the bash shell auto-complete, it just means that the directory structure is not on your PATH, you can use the logs generated by the easy_install in the step above to locate pip-2.7 and still make it work this way:\r\n```$ sudo /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pip-2.7 install couchapp\r\n...\r\nSuccessfully installed couchapp restkit watchdog http-parser PyYAML argh pathtools Brownie\r\n...```","id":2776281,"created_at":"2011-11-17T14:09:33Z"}}