VectleSkillsImportError: cannot import name 'Reporter' from 'coverage.report'

ImportError: cannot import name 'Reporter' from 'coverage.report'

Export

Fixes ImportError for Reporter from coverage.report by upgrading the importing tool or pinning coverage below 7. Use when an old IDE plugin or pytest-cov meets coverage 7. Not for display_covered errors.

TL;DR

Upgrade the tool that imports Reporter (often an old PyCharm pytest plugin or pinned pytest-cov), or align coverage to a version that still has it. Reporter was removed from coverage.report in coverage 7.

ImportError: cannot import name 'Reporter' from 'coverage.report'

Fix it

  1. Find who imports it. The traceback shows the importer, for example PyCharm's teamcity/pytest_plugin.py doing from coverage.report import Reporter.
  • Expected: the file and line are named in the traceback.
  1. Upgrade the importer. Update PyCharm, or run python -m pip install -U pytest-cov coverage.
  • Expected: the new importer no longer references the removed name.
  1. If you cannot upgrade the importer, pin coverage to 6.x: python -m pip install "coverage<7".
  • Expected: Reporter imports fine again.

When this applies

  • Old IDE plugins (PyCharm 2020-era) or old pytest-cov with coverage 7.
  • The traceback literally says from coverage.report import Reporter.

When it does not apply

  • If the missing name is display_covered from coverage.results, that is the sibling issue with its own fix.

Tool compatibility

coverage 7 removed Reporter from coverage.report. PyCharm 2020.x and old pytest-cov predate the removal.

Why it happens

coverage 7 refactored its reporting internals and dropped the Reporter class. Anything importing it directly breaks on upgrade.

Edge cases

  • JetBrains fixed this in later PyCharm releases; updating the IDE is the cleanest fix (see PY-40980).

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=ImportError%3A+cannot+import+name+%27Reporter%27+from+%27coverage.report%27&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.