-
Notifications
You must be signed in to change notification settings - Fork 80
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
Breaks with coverage 5.0 #73
Comments
The new coverage version has some breaking changes and is not backwards compatible. See z4r/python-coveralls#73
For info, I have this issue too with Frappe apps (frappe/frappe#9169), but after pinning coverage version to 4.5.4 I have a new error :
The source code analyzed has not changed and, of course, I did not had this error before. |
Any news on supporting |
@hartwork unless there is something you specifically need here, this worked for me: |
The new coverage version has some breaking changes and is not backwards compatible. See z4r/python-coveralls#73
The new coverage version has some breaking changes and is not backwards compatible. See z4r/python-coveralls#73
Python-coveralls doesn't work with the latest versions of coverage: z4r/python-coveralls#73.
If you are having a trouble with Travis CI, have a look at #74. |
Because: pypthon-coveralls doesn't support the lastest version of coverage 5.0 as the latter has introduced some backwards compatibility breaking changes. See z4r/python-coveralls#73 and MozillaFoundation/foundation.mozilla.org#4170 for details.
Testing Travis Build due to similar error reported with where it fails to import Reporter z4r/python-coveralls#73
…e coveralls-package instead. See z4r/python-coveralls#73
…e coveralls-package instead. See z4r/python-coveralls#73
Also use coveralls instead of python-coveralls as a workaround for z4r/python-coveralls#73
@madmath03 That error is due to the outputted .coverage file format is different for coverage 5.0+. The fix is to downgrade coverage and re-run your test suite, which will regenerate that file in the older format that can be read by the coveralls command. |
See: z4r/python-coveralls#73 -autopull
See: z4r/python-coveralls#73 -autopull
Commenting here since this thread shows up in Google searches often. There's no need to pin to an older version of coveralls. This combination is working for me:
|
@amykyta3 I tried this as I had the same issue but it didn't solve it. |
I use |
I downgraded coverage to a version < 5 and it solved this issue. |
Yes, see the title of the bug and numerous comments above: the problem starts with coverage version 5. Looking at setup.py for this package, it imports "coverage" without any version. |
As suggested here: z4r/python-coveralls#73
* GSL and RALFit work * Add dockerfile for the basic dependencies * First stab at a travis.yml file * pull a specific version of the container * update the docker command * correct name of docker container * change the docker run command * Add full install dockerfile * docker run the script * remove multiline * docker run --> docker exec * update bash script location * Fixing table tests * Updating docker travis file * run apt-get update first * pull the extras container, and test defaults * change location of block scalars * swap tabs for spaces * fix unit tests version * Change location of break * make one line * change directory on entry * change directory of fitbenchmarking * add missing / to pip install * Update dockerfile to build pygsl and update MASTSIF * fix pycutest_cache directory * Run other tests through docker * update dockerfile so that PYTHONPATH is correct * fix directory location * pull the correct container * fix some of the travis warnings * fix the python version used * move to fitbenchmarking repo, not personal one * try and fix sending of data to coveralls * run coveralls in docker * pass environment variables to docker containers * change order of env variables passed to travis * try and run coveralls outside of docker * start docker in fitbenchmarking folder * allow for mantid segfault on first run * full->extras * fix or syntax * split into two commands * try to put segfault on before_install * move segfault capturing into the unit_tests file * install coveralls and change paths * move install of coveralls after pass * remove parallel option * fix coveragerc error * combine coverage reports to fix the directory structure Following the hints here: pytest-dev/pytest-cov#146 * try earlier version of coverage see TheKevJames/coveralls-python#203 * be more specific in the version * fix coverage version to that in the docker container * remove python-coveralls from dockerfile As suggested here: z4r/python-coveralls#73 * remove installation of coverage * pin coverage in dockerfile * remove installation of coveralls (unneeded) * fix syntax * remove old dockerfile * add documentation for the docker tests * fix documentation styling * fix examples format * revert to fixed test directory Co-authored-by: Michael Wathen <[email protected]>
* GSL and RALFit work * Add dockerfile for the basic dependencies * First stab at a travis.yml file * pull a specific version of the container * update the docker command * correct name of docker container * change the docker run command * Add full install dockerfile * docker run the script * remove multiline * docker run --> docker exec * update bash script location * Fixing table tests * Updating docker travis file * run apt-get update first * pull the extras container, and test defaults * change location of block scalars * swap tabs for spaces * fix unit tests version * Change location of break * make one line * change directory on entry * change directory of fitbenchmarking * add missing / to pip install * Update dockerfile to build pygsl and update MASTSIF * fix pycutest_cache directory * Run other tests through docker * update dockerfile so that PYTHONPATH is correct * fix directory location * pull the correct container * fix some of the travis warnings * fix the python version used * move to fitbenchmarking repo, not personal one * try and fix sending of data to coveralls * run coveralls in docker * pass environment variables to docker containers * change order of env variables passed to travis * try and run coveralls outside of docker * start docker in fitbenchmarking folder * allow for mantid segfault on first run * full->extras * fix or syntax * split into two commands * try to put segfault on before_install * move segfault capturing into the unit_tests file * install coveralls and change paths * move install of coveralls after pass * remove parallel option * fix coveragerc error * combine coverage reports to fix the directory structure Following the hints here: pytest-dev/pytest-cov#146 * try earlier version of coverage see TheKevJames/coveralls-python#203 * be more specific in the version * fix coverage version to that in the docker container * remove python-coveralls from dockerfile As suggested here: z4r/python-coveralls#73 * remove installation of coverage * pin coverage in dockerfile * remove installation of coveralls (unneeded) * fix syntax * remove old dockerfile * add documentation for the docker tests * fix documentation styling * fix examples format * revert to fixed test directory Co-authored-by: Michael Wathen <[email protected]> (cherry picked from commit e7bfb0d)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/autoflake: v1.7.6 → v1.7.7](PyCQA/autoflake@v1.7.6...v1.7.7) - [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](asottile/pyupgrade@v3.1.0...v3.2.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.4](pre-commit/mirrors-prettier@v3.0.0-alpha.2...v3.0.0-alpha.4) * Remove python-coveralls and duplication See z4r/python-coveralls#73 Co-authored-by: Pierre Sassoulas <[email protected]>
The 5.0 release of the
coverage
package contains backwards compatibility breaking changes. One of those changes was removing theReporter
class. This results in the following output in Travis CI:The text was updated successfully, but these errors were encountered: