|
From: | Jim Busser |
Subject: | Re: [Gnumed-devel] Please test GNUmed on Mac |
Date: | Fri, 28 Aug 2009 22:47:24 -0700 |
On 24-Aug-09, at 1:16 PM, Sebastian Hilbert wrote: Hi all, Nice catch on the need fpr psycopg2 (on Mac) to have its pg_config line uncommented. On this issue of debugging I found a posting by people who use PostgresPlus (but the same should work for Postgres) suggesting that the need to edit the package (file = setup.cfg) can be circumvented by using the command PATH=$PATH:/Library/PostgreSQL/8.3/bin/ sudo easy_install psycopg2 Also, working ahead to Python 2.6 (if we would increment to this before going to Python 3.x) I found this issue and fix about braces: which I may as well share here: =========================================== If you are trying to set it up on Mac OSX (using the supplied setup.py script) you may run into an error saying
This is a simple thing to fix: open the setup.py file coming with psycopg2 and edit the line 219 like this:
Remove the braces
In python 2.6 (at least) putting exceptions in brackets will catch multiple exceptions in this case Warnings and ‘w’s. The author clearly meant to get the Warning instance as ‘w’. Also, do not forget to edit the setup.cfg file on line 28 and type in your pg_config path. Mine is
and so should yours be if you used the default installer package for mac OS X. Oh, yeah, you need to install postgres before installing psycopg2. |
[Prev in Thread] | Current Thread | [Next in Thread] |