From owner-freebsd-python@FreeBSD.ORG Tue Oct 7 14:43:02 2014 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5887D8F6 for ; Tue, 7 Oct 2014 14:43:02 +0000 (UTC) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17278ACA for ; Tue, 7 Oct 2014 14:43:01 +0000 (UTC) Received: from [80.67.16.121] (helo=webmailfront01.ispgateway.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.84) (envelope-from ) id 1XbVwt-0002IP-Na for freebsd-python@freebsd.org; Tue, 07 Oct 2014 16:41:11 +0200 Received: from his1.his.de (his1.his.de [192.124.237.237]) by webmail.df.eu (Horde Framework) with HTTP; Tue, 07 Oct 2014 16:41:11 +0200 Date: Tue, 07 Oct 2014 16:41:11 +0200 Message-ID: <20141007164111.Horde.sC-iBehoxPtxn-m1y_L-GA1@webmail.df.eu> From: Marcus von Appen To: freebsd-python@freebsd.org Subject: Re: Trying to install psycopg2 for 2.7 & 3.4 References: <5433F667.4090109@wintek.com> In-Reply-To: <5433F667.4090109@wintek.com> Reply-to: mva@freebsd.org User-Agent: Internet Messaging Program (IMP) H5 (6.0.4) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-Df-Sender: ZnJlZWJzZEBzeXNmYXVsdC5vcmc= X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 14:43:02 -0000 Richard Kuhns : > Hello, > > I'm finally trying to port a fair number of python scripts from v2 to > v3. I've already installed py-psycopg2 for v3.4, but when I then try to > install it for v2.7 I get: > > ===> Checking if py27-psycopg2 already installed > ===> Registering installation for py27-psycopg2-2.5.3 > pkg-static: py27-psycopg2-2.5.3 conflicts with py34-psycopg2-2.5.3 > (installs files into the same place). Problematic file: > /usr/local/share/doc/py-psycopg2/AUTHORS > *** Error code 70 > > Stop. > make: stopped in /usr/ports/databases/py-psycopg2 > > Will I be making a mess of things if I just delete the PORTDOCS line in > the Makefile long enough to install py27-psycopg2? Well, you won't solve the issue, the next would be the examples to complain. And afterwards, if psycopg2 installs any binaries/scripts or something similar, it still will complain. You can try the following workaround (untested): 1) Add PYTHON_CONCURRENT_INSTALL=yes after the PYDISTUTILS_AUTOPLIST=yes line. 2) Remove the DOCSDIR= ... and EXAMPLESDIR= ... lines. 3) Deinstall py34-psycopg2-2.5.3. 4) Try to install psycopg2 for both python 3.4 and python 2.7 Cheers Marcus