[Python-modules-team] Bug#942786: py.test fails to run

Anders Hammarquist iko at iko.pp.se
Mon Oct 21 14:21:25 BST 2019


Package: python-pytest
Version: 4.6.6-1
Severity: grave

Attempting to run py.test fails with the following traceback:
Traceback (most recent call last):
  File "/usr/bin/py.test", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3098, in <module>
    @_call_aside
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3082, in _call_aside
    f(*args, **kwargs)
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3111, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 575, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/iko/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'configparser>=3.5' distribution was not found and is required by importlib-metadata


Note that python-configparser of what should be a suitable version is installed (and imports just fine manually):

: luggage%; aptitude show python-configparser
Package: python-configparser             
Version: 3.5.0b2-3
State: installed
Automatically installed: yes
Priority: optional
Section: python
Maintainer: Agustin Henze <tin at debian.org>
Architecture: all
Uncompressed Size: 412 k
Depends: python:any (< 2.8), python:any (>= 2.7~), libjs-sphinxdoc (>= 1.0)
Description: backport of the enhanced config parser introduced in Python 3.2 - PyPy
 The ancient ConfigParser module available in the standard library 2.x has seen a major update in Python 3.2. This is a
 backport of those changes so that they can be used directly in Python 2.7. 
 
 This package contains Python 2.7 module.
Homepage: https://bitbucket.org/ambv/configparser

python-pytest 3.10.1-2 (from testing) works.



More information about the Python-modules-team mailing list