Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 15:35:30 -0700
From:      Scott Sturdivant <scott.sturdivant@gmail.com>
To:        koobs@freebsd.org
Cc:        William Grzybowski <william88@gmail.com>, python <python@freebsd.org>
Subject:   Re: python27-2.7.6_2 doesn't have pkg_resources?
Message-ID:  <CAPcsqxk2V6Ev2kY7L8XyxxYDZjE6roNpV2WwjJUcf1AeOsJH7w@mail.gmail.com>
In-Reply-To: <52F943B6.2080705@FreeBSD.org>
References:  <CAPcsqxn=di=evuP_HQYwpecpFU5gMMPPadsKPixHcmB2HAn2Cg@mail.gmail.com> <CAHtVNLOHAbAQuPOcpn0Lxz%2B1GpeTJMw0EdQUddnEhpYPb8-Tjw@mail.gmail.com> <CAPcsqxmPJxOCr-n8NqTgNG6N7ysz84QcSsvqT9O_nMPo=fAeKg@mail.gmail.com> <52F943B6.2080705@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <koobs.freebsd@gmail.com>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 <william88@gmail.com
> >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 "<string>", line 1, in <module>
> >>> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPcsqxk2V6Ev2kY7L8XyxxYDZjE6roNpV2WwjJUcf1AeOsJH7w>