Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use coverage in Python 3.2 #4866

Closed
ZuluPro opened this issue Sep 29, 2015 · 5 comments
Closed

Can't use coverage in Python 3.2 #4866

ZuluPro opened this issue Sep 29, 2015 · 5 comments

Comments

@ZuluPro
Copy link

ZuluPro commented Sep 29, 2015

Python 3.2 tests fails since today:
https://travis-ci.org/ZuluPro/django-dbbackup/jobs/82792977

$ coverage run setup.py test
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.2.5/bin/coverage", line 9, in <module>
    load_entry_point('coverage==4.0', 'console_scripts', 'coverage')()
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/pkg_resources/__init__.py", line 519, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/pkg_resources/__init__.py", line 2630, in load_entry_point
    return ep.load()
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/pkg_resources/__init__.py", line 2310, in load
    return self.resolve()
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/pkg_resources/__init__.py", line 2316, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/coverage/__init__.py", line 13, in <module>
    from coverage.control import Coverage, process_startup
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/coverage/control.py", line 14, in <module>
    from coverage.annotate import AnnotateReporter
  File "/home/travis/virtualenv/python3.2.5/lib/python3.2/site-packages/coverage/annotate.py", line 81
    dest.write(u'  ')
                   ^
SyntaxError: invalid syntax
The command "coverage run setup.py test" exited with 1.

Here's an old job which succeed and failed after retry: https://travis-ci.org/ZuluPro/django-dbbackup/jobs/80029389

@BanzaiMan
Copy link
Contributor

When a build starts failing without your code changing, it is often the underlying dependencies that changed and caused the sudden failure. Please compare the old and the new dependency versions to troubleshoot. Thanks.

@BanzaiMan
Copy link
Contributor

Looks like there is a major release of coverage, version 4.0.

@ZuluPro
Copy link
Author

ZuluPro commented Sep 30, 2015

Ok thanks, my fast fix:

pip install 'coverage<4'

tkruse added a commit to tkruse/vcstools that referenced this issue Oct 8, 2015
tkruse added a commit to tkruse/vcstools that referenced this issue Oct 8, 2015
@lrq3000
Copy link

lrq3000 commented Oct 8, 2015

@ZuluPro Thank's for the fix, the issue was driving me mad, and the error is very unhelpful. What is weird is that the issue only happens with Python 3.2 (I'm testing 2 different libraries against Python from 2.6 to 3.2 and even Pypy and Pypy3, no issue at all with all the others).

@lrq3000 lrq3000 mentioned this issue Oct 9, 2015
austinhartzheim added a commit to austinhartzheim/osmapi that referenced this issue Oct 15, 2015
MichaelButkovic added a commit to theonion/djesrf that referenced this issue Oct 21, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 26, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 26, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 26, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
andras-tim added a commit to andras-tim/tchart that referenced this issue Oct 27, 2015
metaodi pushed a commit to metaodi/osmapi that referenced this issue Jan 6, 2016
JonathonReinhart added a commit to JonathonReinhart/scuba that referenced this issue Jan 15, 2016
This is an attempt to fix TravisCI for builds on Python 3.2 by using an
older version of coverage.  See travis-ci/travis-ci#4866
phibos added a commit to DinoTools/python-overpy that referenced this issue Feb 11, 2016
s3rvac added a commit to s3rvac/retdec-python that referenced this issue Feb 15, 2016
There is a new version of the coverage package (4.0), which drops support for
Python 3.2. Therefore, we have to use an older version on Python 3.2.

See travis-ci/travis-ci#4866 for more details.
tiger-jmw added a commit to tigercomputing/pytiger that referenced this issue Jun 22, 2016
israel-lugo added a commit to israel-lugo/capidup that referenced this issue Jun 26, 2016
The coverage package, which is used by pytest-cov, doesn't support
Python 3.2 after version 4.0.

See travis-ci/travis-ci#4866 for more details.
dhui pushed a commit to dhui/awaredatetime that referenced this issue Jun 27, 2016
israel-lugo added a commit to israel-lugo/capidup that referenced this issue Jun 28, 2016
The coverage package, which is used by pytest-cov, doesn't support
Python 3.2 after version 4.0.

See travis-ci/travis-ci#4866 for more details.
cwmeijer added a commit to NLeSC/mcfly that referenced this issue Jul 7, 2016
See for more info why coverage needed to be upgraded:
travis-ci/travis-ci#4866
mshenfield added a commit to mshenfield/requirements-parser that referenced this issue Jul 11, 2016
More information on the travis-ci issue tracker [here](travis-ci/travis-ci#4866)
mshenfield added a commit to mshenfield/requirements-parser that referenced this issue Jul 11, 2016
More information on the travis-ci issue tracker [here](travis-ci/travis-ci#4866)
mshenfield added a commit to mshenfield/requirements-parser that referenced this issue Jul 11, 2016
More information on the travis-ci issue tracker [here](travis-ci/travis-ci#4866)
ChrisCummins added a commit to ChrisCummins/visioncpp that referenced this issue Sep 29, 2016
There is a known issue with the coverage 4.0 release failing
on Python 3.2:

  travis-ci/travis-ci#4866

I'm not specifically interested in Python 3.2 support, so rather
than hold back the coverage version to < 4, I'll drop support for
that test environment.

Issue #10.
messersm added a commit to messersm/replay that referenced this issue Oct 21, 2016
bright-tools added a commit to bright-tools/varints that referenced this issue Feb 17, 2017
@ale5000-git
Copy link

For those interested I was able to setup codecov (in practice a wrapper for coverage) under all Python versions, look here.

aichaoxy pushed a commit to aichaoxy/ipgeo that referenced this issue Sep 4, 2017
keep coverage lib < v4 due to  travis-ci/travis-ci#4866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants