Re: psycopg2, postgres9.1, Mac OS - problem with psycopg2

2012-02-22 Thread Will Tuladhar-Douglas
And to whomever wrote and applied those very patches, _thank you_. I discovered 
them after shifting to 1.4a and suddenly lots of things just work.

-WBTD.

On 23 Feb 2012, at 01:26, Jeff Heard wrote:

> Just as a followup to this, there are a few problems that have been patched 
> on Django with regards to Postgres 9.1.  They're not in the stable release, 
> but if you're using custom binary fields, such as PostGIS geometry, you will 
> need to search for the patch and apply it.  You may see '\x00' is not a UTF-8 
> code or something like that.  
> 
> On Wed, Feb 22, 2012 at 1:28 PM, Shawn Milochik  wrote:
> You can either add the proper path of pg_config to your PATH, or just extract 
> the psycopg2 and add the full path to pg_config into the config file it 
> contains then run 'python setup.py install' on the setup.py in the package.
> 


- - -- --- -  -
Will Tuladhar-Douglas 
Anthropology of Environments and Religions
Wellcome Trust Research Fellow, Nepal, 2011-12.
Visiting Scientist, ICIMOD SL/PR group.
tending.to/garden

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: psycopg2, postgres9.1, Mac OS - problem with psycopg2

2012-02-22 Thread Jeff Heard
Just as a followup to this, there are a few problems that have been patched
on Django with regards to Postgres 9.1.  They're not in the stable release,
but if you're using custom binary fields, such as PostGIS geometry, you
will need to search for the patch and apply it.  You may see '\x00' is not
a UTF-8 code or something like that.

On Wed, Feb 22, 2012 at 1:28 PM, Shawn Milochik  wrote:

> You can either add the proper path of pg_config to your PATH, or just
> extract the psycopg2 and add the full path to pg_config into the config
> file it contains then run 'python setup.py install' on the setup.py in the
> package.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: psycopg2, postgres9.1, Mac OS - problem with psycopg2

2012-02-22 Thread Shawn Milochik
You can either add the proper path of pg_config to your PATH, or just 
extract the psycopg2 and add the full path to pg_config into the config 
file it contains then run 'python setup.py install' on the setup.py in 
the package.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



psycopg2, postgres9.1, Mac OS - problem with psycopg2

2012-02-22 Thread Anna
Hello,
I'm trying to install psycopg2 with PostgresSQL 9.1 using Python 2.6
on a Mac OS X 10.6.8 with Django.  I placed the psycopg2 folder under
Python 2.6 and added the following lines to setup.cfg
include_dirs=/Library/PostgreSQL/9.1/include
library_dirs=/Library/PostgreSQL/9.1/lib
pg_config=/Library/PostgresSQL/9.1/bin/pg_config

I cd to the psycopg2 directory and typed 'sudo python setup.py
install.  The following:
running install
running build
running build_py
running build_ext
Error:  Unable to find 'pg_config' file in '/Library/PostgresSQL/9.1/
bin/pg_config'

Can anyone help?  I'm using the Python 2.6 that came installed on my
Mac.
Anna

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.