[Python-modules-team] Bug#802992: python-altgraph: FTBFS with Python 3.5 as default: tests failure
Dmitry Shachnev
mitya57 at debian.org
Sun Oct 25 20:31:46 UTC 2015
Source: python-altgraph
Version: 0.12~dfsg-2
Severity: important
Tags: patch
User: debian-python at lists.debian.org
Usertags: python3.5
Dear Maintainer,
python-altgraph 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
altgraph (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: altgraph (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: altgraph
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/altgraph/__init__.py", line 132, in <module>
__version__ = pkg_resources.require('altgraph')[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 'altgraph' distribution was not found and is required by the application
You can find the full build log here:
https://launchpadlibrarian.net/222742551/buildlog_ubuntu-xenial-amd64.python-altgraph_0.12~dfsg-2_BUILDING.txt.gz
The attached patch fixes this (and, as a bonus, enables tests running for all
Python versions).
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-the-command-to-run-the-tests.patch
Type: text/x-diff
Size: 1243 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20151025/b8f7ba06/attachment.patch>
-------------- 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/b8f7ba06/attachment.sig>
More information about the Python-modules-team
mailing list