X-Received: by 10.50.33.18 with SMTP id n18mr10277923igi.8.1409528045629; Sun, 31 Aug 2014 16:34:05 -0700 (PDT) X-Received: by 10.140.105.52 with SMTP id b49mr517997qgf.3.1409528045441; Sun, 31 Aug 2014 16:34:05 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no7744270igb.0!news-out.google.com!q8ni7qal.1!nntp.google.com!m5no4754340qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 31 Aug 2014 16:34:05 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.40.248.116; posting-account=ojw3_QoAAAB4Zzcen71hZ3z681_sEkyv NNTP-Posting-Host: 92.40.248.116 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4e4cd62e-7faf-44f7-9ea4-c7e23c8ef67f@googlegroups.com> Subject: Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? From: andydtaylor@gmail.com Injection-Date: Sun, 31 Aug 2014 23:34:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:77371 Chris- I have removed the second copy of postgres I had (postgres.app) and updated path variables in .bash_profile: export PATH=$PATH:/usr/local/share/python export PATH=$PATH:/usr/local/bin export PYTHONPATH=$PYTHONPATH:/usr/local/bin/python export PATH=$PATH:/usr/local/Cellar/postgresql/9.3.5_1/bin I don't think I should need the last line because /usr/local/bin/pg_config exists as an alias for /usr/local/Cellar/postgresql/9.3.5_1/bin/pgconfig - do you think I am right? I have read that window apps may be unable to pick up environment variables. hence I added the below to the end of my .bash_profile launchctl setenv PATH $PATH But still Pycharm wasn't having it. So I have created /etc/launchd.conf and put this in it: launchctl setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/python:/usr/local/bin Now I am out of ideas..... It's quite maddening! Any advice appreciated. Thanks, Andy