z4r / python-coveralls

Python API for http://coveralls.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError number

JMStudiosJoe opened this issue · 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

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

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 You should check the package description: coveralls-python (0.0.1) - This is a package used to demonstrate a vulnerability

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