Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 7 Jun 2001 10:47:06 -0400 From: Jason Tishler To: Sherwood Robinson Cc: cygwin AT cygwin DOT com Subject: Re: PoPy python module Message-ID: <20010607104706.N524@dothill.com> Mail-Followup-To: Sherwood Robinson , cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="CV6W/mrvpom2x6YP" Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20010607091520.03b7c348@mail.fredericksburg.com> User-Agent: Mutt/1.3.18i Organization: Dot Hill Systems Corp. --CV6W/mrvpom2x6YP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sherwood, On Thu, Jun 07, 2001 at 09:19:02AM -0400, Sherwood Robinson wrote: > Anyone experienced compiling the PoPy > (http://sourceforge.net/projects/popy) python module for PostgreSQL DB API > 2.0 compliant. > > It is giving me quite the time trying to get this to compile. > > any help would be appreciated. I just tried it and I was successful building and running PoPy-3.0-beta1: $ python Python 2.1 (#1, Apr 17 2001, 09:45:01) [GCC 2.95.3-2 (cygwin special)] on cygwin_nt-4.01 Type "copyright", "credits" or "license" for more information. >>> import PoPy >>> c = PoPy.connect('user=jt dbname=sanman', 1) >>> cursor = c.cursor() >>> cursor.execute('select * from pg_user') >>> cursor.fetchall() [('jt', 1004, 1, 1, 1, 1, '********', None), ('postgres', 1005, 1, 0, 1, 1, '********', None)] Unfortunately, this process uncovered some issues: 1. The attached patch needs to be applied in order for PoPy to build cleanly under Cygwin (and Win32 if appropriate). Note that the essence of this patch is very common -- I have submitted numerous ones that are now part of Python CVS and to other projects such as python-ldap. I recommend that you submit this patch to PoPy for consideration to be included in PoPy CVS. The procedure to apply the patch is as follows: $ # save the attachment to /tmp $ cd PoPy-3.0-beta1 $ patch -p1