Comments (7)
@TheKevJames Will need to pin the version to the next release of coverage
as this will be fixed in that version.
from coveralls-python.
It might be easier to address in coveragepy
. I opened nedbat/coveragepy#1273 for it.
from coveralls-python.
I have similar problem running coveralls in GitHub Action
coveralls
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.10.0/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.0/x64/lib
GITHUB_TOKEN: ***
COVERALLS_SERVICE_NAME: github
Submitting coverage to coveralls.io...
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/reporter.py", line 122, in report
from coverage.report import Reporter # pylint: disable=import-outside-toplevel
ImportError: cannot import name 'Reporter' from 'coverage.report' (/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coverage/report.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.0/x64/bin/coveralls", line 8, in <module>
sys.exit(main())
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/cli.py", line 95, in main
result = coverallz.wear()
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/api.py", line 252, in wear
json_string = self.create_report()
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/api.py", line 330, in create_report
data = self.create_data()
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/api.py", line 384, in create_data
self._data = {'source_files': self.get_coverage()}
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/api.py", line 404, in get_coverage
return CoverallReporter(workman, workman.config, base_dir,
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/reporter.py", line 23, in __init__
self.report(cov, conf)
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/reporter.py", line 125, in report
return self.report5(cov)
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/coveralls/reporter.py", line 76, in report5
matcher = FnmatchMatcher(prep_patterns(config.report_omit))
TypeError: FnmatchMatcher.__init__() missing 1 required positional argument: 'name'
Error: Process completed with exit code 1.
from coveralls-python.
@TheKevJames Please pin coverage
to 6.1.2
😄
from coveralls-python.
Please pin
coverage
to6.1.2
@DanielNoord I wouldn't suggest pinning coverage
. It's much better to exclude incompatible versions in this case. -> #337
from coveralls-python.
Yeah, that's what I meant. Thanks for opening the PR 🎉
from coveralls-python.
Hey folks, thanks for investigating this and special thanks to @cdce8p for the fix. I've just released coveralls v3.3.1 with the included restriction.
Separately, I'll investigate further our use of internal APIs from coverage-py as mentioned in nedbat/coveragepy#1273 . I really thought we'd managed to fix that issue...
from coveralls-python.
Related Issues (20)
- Coverage 6.0 moved `coverage.misc.NoSource` to `coverage.exceptions.NoSource` HOT 3
- [enhancement] Consider binding coverage version
- Stricter Versioning For Coverage HOT 1
- Connectivity exception not handled HOT 2
- ImportError: cannot import name 'Reporter' from 'coverage.report' HOT 2
- Add python-coveralls entrypoint HOT 1
- Support for appended .coverage data files? HOT 1
- Errors running with coverage[toml] HOT 1
- ModuleNotFoundError: No module named 'setuptools.command.build' HOT 1
- Support coverage 7.0 HOT 4
- coveralls workflow fails on Python 3.5 and 3.6 with ubuntu-latest HOT 4
- Tox test on Python 3.6 fails with assertion error HOT 1
- 3.3.1: pytest is failing in units which are uning `coverage.files` module (with `coverage` 7.0.1) HOT 3
- feature request: carryforward flags HOT 1
- Parallel builds in Codebuild HOT 1
- coveralls 2.2.0 fails with KeyError: 'service_job_id' HOT 1
- 500 Server Error HOT 5
- coveralls-python maintenance status HOT 4
- Not working anymore with python-coverage version 7 or newer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coveralls-python.