Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current coveragepy-lcov is incompatible with newly released coverage 7.0.0 #5

Open
mikenerone opened this issue Dec 19, 2022 · 0 comments

Comments

@mikenerone
Copy link

mikenerone commented Dec 19, 2022

The stack trace says most of it when installed with coverage 7.0.0:

Traceback (most recent call last):
  File "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\Scripts\coveragepy-lcov.exe\__main__.py", line 4, in <module>
  File "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\coveragepy_lcov\cli.py", line 3, in <module>
    from .converter import Converter
  File "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\coveragepy_lcov\converter.py", line 5, in <module>
    from coverage.files import FnmatchMatcher, prep_patterns
ImportError: cannot import name 'FnmatchMatcher' from 'coverage.files' (c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\coverage\files.py)

It seems that FnmatchMatcher has been replaced with GlobMatcher. If I'm not mistaken, it looks like it's a straight-up rename (but fixing this could unmask other issues with 7.0.0 - I have not confirmed).

garrison added a commit to garrison/prototype-zne that referenced this issue Jan 9, 2023
coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
pedrorrivero pushed a commit to qiskit-community/prototype-zne that referenced this issue Jan 9, 2023
Pin coverage to < 7 when running coveragepy-lcov

coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
garrison added a commit to qiskit-community/prototype-qrao that referenced this issue Jan 10, 2023
coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
garrison added a commit to Qiskit/qiskit-addon-cutting that referenced this issue Jan 18, 2023
coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
garrison added a commit to Qiskit/qiskit-addon-cutting that referenced this issue Jan 18, 2023
coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
garrison added a commit to qiskit-community/quantum-prototype-template that referenced this issue Feb 6, 2023
coverage 7.0.0 removed `FnmatchMatcher`, which coverage-lcov
currently depends on.
chaychoong/coveragepy-lcov#5

We can unpin this once coverage-lcov has been fixed.
JohannesBuchner added a commit to JohannesBuchner/CmdStanCache that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant