Issue #538 resolved

Coverage.py, version 4.2 Problem

crying_Dream
created an issue

When I use coverage comand,like this $ coverage html Couldn't read data from '/opt/meituan/qa-staging8414/.coverage': ValueError: Expecting , delimiter: line 1 column 82945 (char 82945) $ coverage report Couldn't read data from '/opt/meituan/qa-staging8414/.coverage': ValueError: Expecting , delimiter: line 1 column 82945 (char 82945)

I do not know how to solve, to find a question here. good luck

Comments (8)

  1. Ned Batchelder repo owner

    If you could provide me with a way to reproduce the problem, I can help you get it working. It sounds like the file is truncated? Tell me more about your whole environment.

  2. crying_Dream reporter

    Thanks!O(∩_∩)O~~ Ned Batchelder I think provide you a way to reproduce the problem is difficult,because my project is relatively large。 Can you tell me how to judge file is truncated?And why file is truncated?

  3. Ned Batchelder repo owner

    crying_Dream Does this happen every time you run coverage? I don't know why your data file would be truncated. Are you copying it from somewhere else? Are you letting the "coverage run" process fully complete? Can you share the data file with me?

  4. Ned Batchelder repo owner

    I have no experience running coverage under gunicorn. It seems like a strange thing to do. If you need to do it that way, then you need to cleanly stop the process, by having it exit. Are you stopping the process from outside?

  5. Log in to comment