Actually I realise that postgres app didn't come from brew.... I wonder if 
that's the issue

On Sunday, 31 August 2014 15:19:24 UTC+1, andyd...@gmail.com  wrote:
> 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

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to