Hi Todd, Here is a copy of my terminal session:
running install running build running build_py running build_ext Warning: /bin/sh: line 1: pg_config: command not found building 'psycopg2._psycopg' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd - fno-common -dynamic -DNDEBUG -g -O3 -DPY_MAJOR_VERSION=2 - DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 - DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 - DPSYCOPG_VERSION="2.0.6 (dec dt ext pq3)" -DPSYCOPG_EXTENSIONS=1 - DPSYCOPG_DISPLAY_SIZE=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 - DHAVE_PQPROTOCOL3=1 -I/Library/Frameworks/Python.framework/Versions/ 2.5/include/python2.5 -I. -c psycopg/psycopgmodule.c -o build/ temp.macosx-10.3-fat-2.5/psycopg/psycopgmodule.o In file included from psycopg/psycopgmodule.c:29: ./psycopg/connection.h:27:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29: ./psycopg/connection.h:56: error: parse error before 'PGconn' ./psycopg/connection.h:56: warning: no semicolon at end of struct or union ./psycopg/connection.h:83: error: parse error before '}' token ./psycopg/connection.h:83: warning: data definition has no type or storage class ./psycopg/connection.h:86: error: parse error before '*' token ./psycopg/connection.h:87: error: parse error before '*' token ./psycopg/connection.h:88: error: parse error before '*' token ./psycopg/connection.h:89: error: parse error before '*' token ./psycopg/connection.h:90: error: parse error before '*' token ./psycopg/connection.h:91: error: parse error before '*' token In file included from psycopg/psycopgmodule.c:30: ./psycopg/cursor.h:40: error: parse error before 'connectionObject' ./psycopg/cursor.h:40: warning: no semicolon at end of struct or union ./psycopg/cursor.h:42: error: parse error before ':' token ./psycopg/cursor.h:43: error: parse error before ':' token ./psycopg/cursor.h:44: error: parse error before ':' token ./psycopg/cursor.h:56: error: parse error before '*' token ./psycopg/cursor.h:56: warning: data definition has no type or storage class ./psycopg/cursor.h:58: error: parse error before 'lastoid' ./psycopg/cursor.h:58: warning: data definition has no type or storage class ./psycopg/cursor.h:80: error: parse error before '}' token ./psycopg/cursor.h:80: warning: data definition has no type or storage class ./psycopg/cursor.h:83: error: parse error before '*' token In file included from psycopg/psycopgmodule.c:32: ./psycopg/microprotocols.h:54: error: parse error before 'connectionObject' ./psycopg/microprotocols.h:57: error: parse error before '*' token In file included from psycopg/psycopgmodule.c:29: ./psycopg/connection.h:27:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29: ./psycopg/connection.h:56: error: parse error before 'PGconn' ./psycopg/connection.h:56: warning: no semicolon at end of struct or union ./psycopg/connection.h:83: error: parse error before '}' token ./psycopg/connection.h:83: warning: data definition has no type or storage class ./psycopg/connection.h:86: error: parse error before '*' token ./psycopg/connection.h:87: error: parse error before '*' token ./psycopg/connection.h:88: error: parse error before '*' token ./psycopg/connection.h:89: error: parse error before '*' token ./psycopg/connection.h:90: error: parse error before '*' token ./psycopg/connection.h:91: error: parse error before '*' token In file included from psycopg/psycopgmodule.c:30: ./psycopg/cursor.h:40: error: parse error before 'connectionObject' ./psycopg/cursor.h:40: warning: no semicolon at end of struct or union ./psycopg/cursor.h:42: error: parse error before ':' token ./psycopg/cursor.h:43: error: parse error before ':' token ./psycopg/cursor.h:44: error: parse error before ':' token ./psycopg/cursor.h:56: error: parse error before '*' token ./psycopg/cursor.h:56: warning: data definition has no type or storage class ./psycopg/cursor.h:58: error: parse error before 'lastoid' ./psycopg/cursor.h:58: warning: data definition has no type or storage class ./psycopg/cursor.h:80: error: parse error before '}' token ./psycopg/cursor.h:80: warning: data definition has no type or storage class ./psycopg/cursor.h:83: error: parse error before '*' token In file included from psycopg/psycopgmodule.c:32: ./psycopg/microprotocols.h:54: error: parse error before 'connectionObject' ./psycopg/microprotocols.h:57: error: parse error before '*' token psycopg/psycopgmodule.c:101: error: parse error before '*' token psycopg/psycopgmodule.c: In function '_psyco_connect_fill_exc': psycopg/psycopgmodule.c:104: error: 'conn' undeclared (first use in this function) psycopg/psycopgmodule.c:104: error: (Each undeclared identifier is reported only once psycopg/psycopgmodule.c:104: error: for each function it appears in.) psycopg/psycopgmodule.c: In function 'psyco_connect': psycopg/psycopgmodule.c:215: error: parse error before ')' token psycopg/psycopgmodule.c: In function 'psyco_register_type': psycopg/psycopgmodule.c:271: error: parse error before ')' token psycopg/psycopgmodule.c:274: error: parse error before ')' token psycopg/psycopgmodule.c:101: error: parse error before '*' token psycopg/psycopgmodule.c: In function '_psyco_connect_fill_exc': psycopg/psycopgmodule.c:104: error: 'conn' undeclared (first use in this function) psycopg/psycopgmodule.c:104: error: (Each undeclared identifier is reported only once psycopg/psycopgmodule.c:104: error: for each function it appears in.) psycopg/psycopgmodule.c: In function 'psyco_connect': psycopg/psycopgmodule.c:215: error: parse error before ')' token psycopg/psycopgmodule.c: In function 'psyco_register_type': psycopg/psycopgmodule.c:271: error: parse error before ')' token psycopg/psycopgmodule.c:274: error: parse error before ')' token lipo: can't figure out the architecture type of: /var/tmp// ccdsm1aZ.out error: command 'gcc' failed with exit status 1 Thoughts? Thanks, Brandon On Sep 2, 6:09 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > On Sun, 2007-09-02 at 16:04 -0700, Brandon Taylor wrote: > > Hi everyone, > > > I have Python 2.5.1 and Django installed and running on OS X 10.4.10, > > but can't seem to get either the Psycopg2 or MySQL-python bindings > > installed so I can actually use a database with Django. > > > I have the latest version of PostgreSQL and MySQL5 installed and > > running. Can someone please get me pointed in the right direction?! > > > Many thanks in advance, > > Brandon > > On my Mac, the main problem with Python is that I can't tell which > version it's using. I assume you've tried downloading psycopg2 and > running > > $ sudo python setup.py install > > from the terminal in the correct directory? If you have, what errors do > you get? > > Todd --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---