Error running 'python3-coverage report'

Traceback (most recent call last):
  File "/usr/bin/python3-coverage", line 33, in <module>
    sys.exit(load_entry_point('coverage==6.2', 'console_scripts', 'python3-coverage')())
  File "/usr/bin/python3-coverage", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
Traceback (most recent call last):
  File "/usr/bin/python3-coverage", line 33, in <module>
    sys.exit(load_entry_point('coverage==6.2', 'console_scripts', 'python3-coverage')())
  File "/usr/bin/python3-coverage", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
Exception: Error running 'python3-coverage report'

I’ve tried uninstalling coverage and setting up a virtual environment that has the latest coverage version, however I can’t seem to get past this. Even uninstalled from pip and pip3 in case different versions were messing up.

Which OS are you using?
Which version of python?
How are you installing coverage?

It seems to be installed into the system, /usr/bin. Is it from an official OS package?
But since you talk of pip you maybe damaging your systems by pip as root.

You should find that your OS has coverage packaged for your OS python
and you do not need to use pip.

But if you have damaged your system it will need to be repaired.

I was facing the same issue and installing coverage with just apt and removing all the other instances installed from pip seems to work, some version mismatch causes this I believe.