We are seeing a lot of "Coverage.py warning: Could not parse Python file .....py" on Travis only.
e.g.
https://travis-ci.org/coala/coala/jobs/199030440#L514
It may be a problem with codecov-bash, or with coverage.
This also occurs on the Travis build of https://github.com/coala/coala/pull/3719
https://travis-ci.org/coala/coala/jobs/199428948#L491
It doesnt happen on the Python 3.4+ builds
So this is caused by the UNSUPPORTED=true builds.
Can confirm that the same happens with coverage.py
I also encountered this issue while trying to enable codecov in CircleCI. How I got it fixed was by activating the virtualenv before running codecov. I am not at all sure that is the case here but just wanted to let you folks know in case it may help. Cheers :smile:
Problem is we don't use virtualenv in our CI 馃槄 but thanks for the tip :+1:
Cool. In my case the Coverage.py warning: Could not parse Python file blah blah warning was not all helpful for me to debug the error. So I tried the codecov uploader written in bash instead of the pip package. That helped me a lot to debug the issue as I got a completely different error while running the bash uploader instead of the pip package(the error was Python coveragepy not found). Probably worth trying this with the bash uploader. It's pretty easy to use. Just replace the codecov in after_success with curl -s https://codecov.io/bash. :smile:
I had this issue with nose2 but came out ok with nose2-2.7, the nose2 is nose2-3*, the mixed multiple version of python sure make things interesting.
Most helpful comment
I had this issue with
nose2but came out ok withnose2-2.7, thenose2is nose2-3*, the mixed multiple version of python sure make things interesting.