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


Groups > comp.lang.python > #77347

Psycopg2 package installation puzzle in Pycharm - any thoughts?

Newsgroups comp.lang.python
Date 2014-08-31 07:19 -0700
Message-ID <fe77f4c0-d45d-4baf-bd60-b8398c2bc0bb@googlegroups.com> (permalink)
Subject Psycopg2 package installation puzzle in Pycharm - any thoughts?
From andydtaylor@gmail.com

Show all headers | View raw


Hi,

I have a puzzle, for which I would appreciate your opinion on!

I have been trying to setup a project in Pycharm with psycopg2.

If I install it using pip install it is added. However  if I use the Pycharm "preferences>project interpreter>add package" option it fails with the below message. 


Please add the directory containing pg_config to the PATH

or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/79/wxtpjs7x3wx_v01fz8h5y8pw0000gp/T/pycharm-packaging4753300326598484086.tmp/psycopg2
Storing debug log for failure in /Users/admin/.pip/pip.log

in .bash_profile I have the following:

export PATH=$PATH:/usr/local/share/python
export PATH=$PATH:/usr/local/bin
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
export PYTHONPATH=$PYTHONPATH:/usr/local/bin/python

export WORKON_HOME=$HOME/.Virtualenvs
export PROJECT_HOME=$HOME/Projects
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/virtualenvwrapper.sh
# source /usr/local/share/python/virtualenvwrapper.sh

alias showhidden='defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder'
alias hidehidden='defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder


Notes
-Mac OS
-Python and Postgres installed using brew
-Django project
- Installing to a virtualenv python environment.

Let me know if you have an idea how I can fix this!

Thanks,

Andy

Back to comp.lang.python | Previous | NextNext 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