Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77372

Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?

Newsgroups comp.lang.python
Date 2014-08-31 16:35 -0700
References <fe77f4c0-d45d-4baf-bd60-b8398c2bc0bb@googlegroups.com> <ltvio4$q51$1@virtdiesel.mng.cu.mi.it>
Message-ID <f5fee21f-3e49-4966-b81c-75b847303a65@googlegroups.com> (permalink)
Subject Re: Psycopg2 package installation puzzle in Pycharm - any thoughts?
From andydtaylor@gmail.com

Show all headers | View raw


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 

Andrea - yes I am using the virtualenv interpreter as the Pycharm project interpreter

Now I am out of ideas..... It's quite maddening! 

Any advice appreciated. 

Thanks, 

Andy 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 07:19 -0700
  Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 07:21 -0700
  Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-31 16:39 +0200
  Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-08-31 18:33 +0200
    Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 16:34 -0700
    Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 16:35 -0700
      Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 16:57 -0700
        Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-08-31 17:20 -0700
        Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-09-01 01:53 +0100
      Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-09-01 09:07 +0200
        Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-09-01 05:32 -0700
          Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-09-01 15:13 +0200
          Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Chris Angelico <rosuav@gmail.com> - 2014-09-01 23:16 +1000
          Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-09-01 14:31 +0100
            Re: Psycopg2 package installation puzzle in Pycharm - any thoughts? andydtaylor@gmail.com - 2014-09-01 16:13 -0700

csiph-web