Coverage.py, version 4.2 Problem

Issue #538 resolved
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 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. crying_Dream reporter

    Thanks!O(∩_∩)O~~ @ned The data file is to large,Can I email you? What is your email address?

  5. crying_Dream reporter

    @ned When I omit many file create a small coverage file, it shows the file is truncated。How to end the program to generate a normal file?The start command is "gunicorn -c guniconf.py --env myapp.wsgi"。 屏幕快照 2016-12-27 下午1.50.54.png

  6. 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?

  7. crying_Dream reporter

    Thanks!O(∩_∩)O~~ When I use 'kill -2 pid' stop the process ,that generate reports normally。 My problem has been solved。Best wishes for you。@ned

  8. Log in to comment