Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2016 22:28:19 -0500
From:      David Mehler <dave.mehler@gmail.com>
To:        python@freebsd.org
Subject:   Py-setuptools compilation error
Message-ID:  <CAPORhP4odPf7SCxGZu4tE47appUX=_xyASxPHdi3rRpmbteiEg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

I'm running a FreeBSD 10.3 p14 system. It's got Python 2.7, and
py-setuptools27 on it, both I believe dependencies of the
mysql56-server which I'm also running.

I have updated my ports to the latest, and done a system upgrade with
portmaster. When the process gets to compiling py-setuptools27 as a
dependency of python27 it bombs out. I manually go to that directory,
do a make clean and a make atempting to narrow the issue and this is
what I have:

 /usr/ports/devel/py-setuptools27]# make
===>  License PSFL accepted by the user
===>   py27-setuptools27-28.8.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py27-setuptools27-28.8.0 for building
===>  Extracting for py27-setuptools27-28.8.0
=> SHA256 Checksum OK for python/setuptools-28.8.0.tar.gz.
===>  Patching for py27-setuptools27-28.8.0
===>   py27-setuptools27-28.8.0 depends on file:
/usr/local/bin/python2.7 - found
===>  Configuring for py27-setuptools27-28.8.0
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    import setuptools
  File "/usr/ports/devel/py-setuptools27/work/setuptools-28.8.0/setuptools/__init__.py",
line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
  File "/usr/ports/devel/py-setuptools27/work/setuptools-28.8.0/setuptools/extern/__init__.py",
line 1, in <module>
    from pkg_resources.extern import VendorImporter
  File "/usr/ports/devel/py-setuptools27/work/setuptools-28.8.0/pkg_resources/__init__.py",
line 74, in <module>
    __import__('pkg_resources.extern.packaging.requirements')
  File "/usr/ports/devel/py-setuptools27/work/setuptools-28.8.0/pkg_resources/extern/__init__.py",
line 61, in load_module
    "distribution.".format(**locals())
ImportError: The 'packaging.requirements' package is required;
normally this is bundled with this package so if you get this warning,
consult the packager of your distribution.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-setuptools27

What does this mean and is there a fix?

Thanks.
Dave.



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