[Python-modules-team] Bug#802996: python-macholib: FTBFS with Python 3.5 as default: tests failure

Dmitry Shachnev mitya57 at debian.org
Sun Oct 25 20:39:02 UTC 2015


Source: python-macholib
Version: 1.7~dfsg-2
Severity: important
User: debian-python at lists.debian.org
Usertags: python3.5

Dear Maintainer,

python-macholib FTBFS when Python 3.5 is the default Python 3 version
(i.e. with python3-defaults from experimental):

  I: pybuild base:170: cd '/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build'; python3.5 -m unittest discover -v 
  macholib (unittest.loader._FailedTest) ... ERROR

  ======================================================================
  ERROR: macholib (unittest.loader._FailedTest)
  ----------------------------------------------------------------------
  ImportError: Failed to import test module: macholib
  Traceback (most recent call last):
    File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path
      package = self._get_module_from_name(name)
    File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
      __import__(name)
    File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_3.5/build/macholib/__init__.py", line 10, in <module>
      __version__ = pkg_resources.require('macholib')[0].version
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 952, in require
      needed = self.resolve(parse_requirements(requirements))
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 839, in resolve
      raise DistributionNotFound(req, requirers)
  pkg_resources.DistributionNotFound: The 'macholib' distribution was not found and is required by the application

You can find the full build log here:
https://launchpadlibrarian.net/222807666/buildlog_ubuntu-xenial-amd64.python-macholib_1.7~dfsg-2_BUILDING.txt.gz

I tried to apply a patch similar to one in #802992, but the tests were still
failing, because they tried to access some OS X specific files.

If the tests cannot be fixed, you can disable them by exporting
PYBUILD_DISABLE=test.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20151025/dd38b0b0/attachment.sig>


More information about the Python-modules-team mailing list