From owner-freebsd-python@FreeBSD.ORG Mon Feb 10 22:35:33 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77F20AA4; Mon, 10 Feb 2014 22:35:33 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AF0741163; Mon, 10 Feb 2014 22:35:32 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id l4so5262122lbv.19 for ; Mon, 10 Feb 2014 14:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PT1ohhs01OQsgsb8v2EjJI0cfIW/TMRvt6M0lQ46YNs=; b=CTAPALQDJkTE5zOKlWEgciPvZUdYCUIXOkKOtYFuyxx3wipKXr1l/idEeekhbXYyEp UVj7luHw2dTkaLtZWSZCjZwnwHm59IVIvJ3PbrBSsbVPEzNIfzdXujBMcDcTRs9T7+C2 73sHSpaF/OAa0N5m+0S5fNmLPLHwnFAtxSc3UBUlDkakRCA/nf27a9SHhrytoBZGDlY4 PRM6V7v6GMg1Hh5ftx8gMKjQQUqBnAZtA8Qx00t/TsDrIH+iYX6eSUx5HpbbEJ89lu/P LJspNW0OiNsx760JH+xG5uZwKUvlHpLoghb0paa1CHPMfYn/uHnR9OfYB79Ok+jkClq9 hOUA== MIME-Version: 1.0 X-Received: by 10.112.172.8 with SMTP id ay8mr3257190lbc.41.1392071730666; Mon, 10 Feb 2014 14:35:30 -0800 (PST) Received: by 10.114.5.129 with HTTP; Mon, 10 Feb 2014 14:35:30 -0800 (PST) In-Reply-To: <52F943B6.2080705@FreeBSD.org> References: <52F943B6.2080705@FreeBSD.org> Date: Mon, 10 Feb 2014 15:35:30 -0700 Message-ID: Subject: Re: python27-2.7.6_2 doesn't have pkg_resources? From: Scott Sturdivant To: koobs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: William Grzybowski , python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 22:35:33 -0000 Hi Kubilay, It looks like the FreeBSD 9.2 repo has py27-virtualenv 1.10.1 as the latest. I've got a poudriere machine that has built 1.11.2. When installing virtualenv 1.11.2, I'm not getting the dependency on py27-setuptools and as such it lets me install py27-virtualenv 1.11.2, then errors out when trying to create a virtualenv. Looking at this commit ( https://github.com/freebsd/freebsd-ports/commit/cdcc5f4edbe977fdcab31bd9f52ed18067bc9a57), is it possible that the removal of SETUPTOOLSVER means that it's no longer a run dependency? Sorry, I don't know enough about the macro magic... Thanks, Scott On Mon, Feb 10, 2014 at 2:25 PM, Kubilay Kocak wrote: > On 11/02/2014 7:48 AM, Scott Sturdivant wrote: > > Thanks William, that indeed does appear to be the issue. Sorry for the > > noise, and thanks again for the pointer to the right direction! > > > > > > On Mon, Feb 10, 2014 at 1:43 PM, William Grzybowski >wrote: > > > >> > >> On Mon, Feb 10, 2014 at 6:07 PM, Scott Sturdivant < > >> scott.sturdivant@gmail.com> wrote: > >> > >>> Hi, > >>> > >>> With the latest FreeBSD package (2.7.6_2), the pkg_resource module > seems > >>> to > >>> be broken: > >>> > >>> # pkg info | grep python27 > >>> python27-2.7.6_2 Interpreted object-oriented programming > >>> language > >>> # /usr/local/bin/python2.7 -c 'import pkg_resources' > >>> Traceback (most recent call last): > >>> File "", line 1, in > >>> ImportError: No module named pkg_resources > >>> > >>> > >>> This was not the case on 2.7.6_1: > >>> > >>> # pkg info | grep python27 > >>> python27-2.7.6_1 Interpreted object-oriented programming > >>> language > >>> # /usr/local/bin/python2.7 -c 'import pkg_resources' > >>> # > >>> > >>> > >>> This impact other packages such as py27-virtualenv. If i try to > create a > >>> virtualenv, it immediately aborts with the error that pkg_resources > >>> doesn't > >>> exist. > >>> > >>> Am I doing something wrong? > >>> > >> > >> AFAIK pkg_resources comes from devel/py-setuptools, not from > >> lang/python2.7 . > >> It sounds like devel/py-virtualenv is broken and should have an explicit > >> run dependency for devel/py-setuptools. > >> > >> > >> > >> -- > >> William Grzybowski > >> ------------------------------------------ > >> Curitiba/PR - Brasil > >> > > _______________________________________________ > > freebsd-python@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-python > > To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org > " > > > > Hi Scott, > > I updated the pip, virtualenv and virtualenvwrapper ports yesterday to > their respective latest upstream versions. I'm not sure if you're > reporting your issue after updating, but if you haven't already > upgraded, try the latest. > > Note: The previous to current version delta is pretty big, and there are > a number of backwards incompatible changes in at least virtualenv and > pip. Read the Changes URL's that were included in the commit message for > each. > > Let me know if you come across anything in the port updates that I may > have overlooked. If you find an upstream commit for the issue, I'll back > port it. > > -- > koobs >