python-coveralls icon indicating copy to clipboard operation
python-coveralls copied to clipboard

KeyError number

Open JMStudiosJoe opened this issue 7 years ago • 4 comments

What do the KeyErrors mean I see KeyError 25952 and few other numbers not what the mean any help will be appreciated, thanks. Error we are having:

Traceback (most recent call last): File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/bin/coveralls", line 11, in sys.exit(wear()) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coveralls/init.py", line 94, in wear source_files=coverage.coveralls(args.base_dir, ignore_errors=args.ignore_errors, merge_file=args.merge_file), File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coveralls/control.py", line 9, in coveralls return reporter.report(base_dir, ignore_errors=ignore_errors, merge_file=merge_file) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coveralls/report.py", line 23, in report analysis = self.coverage._analyze(fr) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/control.py", line 891, in _analyze return Analysis(self.data, it) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/results.py", line 28, in init self._arc_possibilities = sorted(self.file_reporter.arcs()) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/python.py", line 165, in arcs return self.parser.arcs() File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/parser.py", line 238, in arcs for l1, l2 in self.byte_parser._all_arcs(): File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/parser.py", line 624, in _all_arcs arcs.update(bp._arcs()) File "/Users/joseph/Documents/WebDevWorkspace/backend_api/venv3/lib/python3.6/site-packages/coverage/parser.py", line 590, in _arcs next_chunk = byte_chunks[ex] KeyError: 25952

Just from running coveralls

JMStudiosJoe avatar Mar 07 '17 20:03 JMStudiosJoe

I forced the installation of coverage==4.4.2 and it fixed the issue.

FinchPowers avatar Dec 05 '17 16:12 FinchPowers

I am having the same error, but mine is KeyError: 29770. Tried @FinchPowers's solution but didn't work.

UPDATE: I switched to coveralls-python and it just works.

kmkurn avatar Feb 01 '19 03:02 kmkurn

@kmkurn You should check the package description: coveralls-python (0.0.1) - This is a package used to demonstrate a vulnerability

GuillaumeSmaha avatar May 07 '19 17:05 GuillaumeSmaha

@GuillaumeSmaha On pip it's listed as coveralls. You should check the link I posted above.

kmkurn avatar May 15 '19 08:05 kmkurn