Re: Trouble installing psycopg2 on Mac OSX 10.6

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Bill Carithers <wccarithers(at)lbl(dot)gov>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Trouble installing psycopg2 on Mac OSX 10.6
Date: 2011-05-16 22:09:14
Message-ID: BANLkTi=YEOZLodUeEQCS84naJSOEAxn99Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, May 16, 2011 at 9:46 PM, Bill Carithers <wccarithers(at)lbl(dot)gov> wrote:
> Hi Daniele,
>
> Thanks for the prompt reply. I tried the two things you suggested. Results
> are:
>
> c4-2c-3-1-f0-3a:psycopg2-2.4.1 williamcarithers$ python setup.py install
> running install
> running build
> running build_py
> running build_ext
> pg_config is set to  /Library/PostgreSQL/8.4/bin  <-- the print statement

the setup value should be the full path, not the containing directory,
something like

/Library/PostgreSQL/8.4/bin/pg_config

I guess.

> error: Permission denied <-- removing the try/except

Seems compatible with trying to execute a directory.

> So it looks like it is getting the correct pg_config from the setup.cfg
> file. Stupid question--it is looking for the executable pg_config in ./bin
> and not the pg_config.h in the ./include directory, right?

If you set a value into setup.cfg, it shouldn't be searching for
anything, but just use that value, and fail if it doesn't work as an
executable.

-- Daniele

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Bill Carithers 2011-05-16 22:42:17 Re: Trouble installing psycopg2 on Mac OSX 10.6
Previous Message Bill Carithers 2011-05-16 20:46:39 Re: Trouble installing psycopg2 on Mac OSX 10.6