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

TypeError: __init__() takes 2 positional arguments but 3 were given #3

Open
jumasheff opened this issue Nov 15, 2021 · 3 comments
Open

Comments

@jumasheff
Copy link

I wanted to convert .coverage to lcov, but your tool is failing :( I just issued this command: coveragepy-lcov.
This is the error I got.
TypeError: __init__() takes 2 positional arguments but 3 were given

@atodorov
Copy link

I originally tried https://github.com/TheCleric/coverage-lcov which is a fork of this repo but fails with the same error and doesn't seem to be maintained very actively either.

@aropan
Copy link

aropan commented Nov 22, 2021

I had the same error. Try use coverage-lcov==0.2.1 with coverage==6.1.1 (install order is important):

pip install coverage-lcov==0.2.1 toml==0.10.2
pip install coverage==6.1.1

I get:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
coverage-lcov 0.2.1 requires coverage<6.0,>=5.5, but you have coverage 6.1.1 which is incompatible.

But it works for me. I use python 3.6.6.

UPD
Simpler way:

pip install coverage==5.6b1 coverage-lcov==0.2.1 toml==0.10.2

@chaychoong
Copy link
Owner

Hi @jumasheff and @atodorov, sorry for the late reply, and thanks @aropan for the workaround.

I've just bumped the library versions and it works, at least on the coverage files I have on my machine. Could you check if the error persists?

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