From owner-freebsd-python@FreeBSD.ORG Mon Feb 10 21:25:16 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 9DEC8667 for ; Mon, 10 Feb 2014 21:25:16 +0000 (UTC) Received: from mail-pb0-x232.google.com (mail-pb0-x232.google.com [IPv6:2607:f8b0:400e:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 670391ABF for ; Mon, 10 Feb 2014 21:25:16 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id rq2so6803642pbb.37 for ; Mon, 10 Feb 2014 13:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=JNsb+ogCh+wWW4JrhOzoYCrEj4DVpIN/ZnlzgM1FnEA=; b=WGMQylI7XxBiZjXmHxnbv0TuEBIAUugUuscL/ucysrzoaZ5v2TbYXXBHRt28oI/bBY TPic486FcjRFaA0ltrVAAbszH/HxyCKSHGxPwitvMYsHt66ubmnSiB4MCIjNhvj91RYL FNQEX8vmtrcgCULGb/vYld7ysfqKqGBB7IJKAkoTufweO0BeVmNhbR9uFM+YQ2NTnDR4 t91uJSkdJx/T97duOx//YV0tMB3iarxHgxSSjbPSOdWbzS0qK/9Sy41H386dAkhJYIkA o95oYmpNTcJaPdbwKhyt2pmNacLknx4vam6yvQ6wdpXb6ST9j45gw7/M00Hd9K8V2z3n ncAQ== X-Received: by 10.68.12.74 with SMTP id w10mr40421115pbb.39.1392067515950; Mon, 10 Feb 2014 13:25:15 -0800 (PST) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id vn10sm45662488pbc.21.2014.02.10.13.25.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Feb 2014 13:25:15 -0800 (PST) Message-ID: <52F943B6.2080705@FreeBSD.org> Date: Tue, 11 Feb 2014 08:25:10 +1100 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Thunderbird/27.0 MIME-Version: 1.0 To: Scott Sturdivant , William Grzybowski Subject: Re: python27-2.7.6_2 doesn't have pkg_resources? References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 21:25:16 -0000 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