Where can I find the setup.cfg file on a mac?

On Monday, July 23, 2012 3:18:02 PM UTC-4, Mehrdad Majzoobi wrote:
>
> Ok, I realized what the issue was. In the setup.cfg file, the pg_config 
> path had to include the pg_config executable name as well:
>
> pg_config = /usr/pgsql-9.1/bin/pg_config
>
> On Monday, July 23, 2012 2:01:29 PM UTC-5, Mehrdad Majzoobi wrote:
>>
>> Guys, I have a similar problem but the difference is pg_config is 
>> actually in my PATH:
>>
>> $ which pg_config
>> /usr/pgsql-9.1/bin/pg_config
>>
>> I get the following error when I try to pip install psychopg2
>>
>> ###################
>> Error: pg_config executable not found.
>>
>>
>>
>> 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'.
>>
>> ----------------------------------------
>> Command python setup.py egg_info failed with error code 1 in 
>> /tmp/pip-build/psycopg2
>>
>> ###################
>>
>> I tried adding pg_config path to the setup.cfg file and build it using 
>> the source files I downloaded from their website and I get the following 
>> error message!
>>
>> Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
>>
>>
>> But it is actually THERE!!!
>>
>> I am baffled by these errors. Can anyone help please?
>>
>> By the way, I sudo all the commands. Also I am RHEL 5.5.
>>
>>
>>
>> On Thursday, March 24, 2011 11:18:23 AM UTC-5, Shawn Milochik wrote:
>>>
>>> On Thu, Mar 24, 2011 at 12:03 PM, Andre Lopes <[email protected] 
>>> <javascript:>> wrote:
>>> > I have solved.
>>> >
>>> > I just edited "setup.cfg" on the psycopg2 and added:
>>> >
>>> > pg_config=C:\Program Files\PostgreSQL\8.4\bin\pg_config.exe
>>>
>>>
>>> Yeah, that's the easiest method, but you specifically wanted to know
>>> how to install it with pip. That way you have to install the module
>>> manually. But it works. ;o)
>>>
>>> Shawn
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/705681fa-fb8a-498c-9699-31d523de6698%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to