GithubHelp home page GithubHelp logo

Comments (7)

DanielNoord avatar DanielNoord commented on June 10, 2024 3

@TheKevJames Will need to pin the version to the next release of coverage as this will be fixed in that version.

from coveralls-python.

cdce8p avatar cdce8p commented on June 10, 2024 2

It might be easier to address in coveragepy. I opened nedbat/coveragepy#1273 for it.

from coveralls-python.

emcek avatar emcek commented on June 10, 2024

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.

DanielNoord avatar DanielNoord commented on June 10, 2024

@TheKevJames Please pin coverage to 6.1.2 😄

from coveralls-python.

cdce8p avatar cdce8p commented on June 10, 2024

Please pin coverage to 6.1.2

@DanielNoord I wouldn't suggest pinning coverage. It's much better to exclude incompatible versions in this case. -> #337

from coveralls-python.

DanielNoord avatar DanielNoord commented on June 10, 2024

Yeah, that's what I meant. Thanks for opening the PR 🎉

from coveralls-python.

TheKevJames avatar TheKevJames commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.