sixty-north / cosmic-ray

Mutation testing for Python
MIT License
565 stars 57 forks source link

Cosmic Ray doesn't start #448

Closed flomotlik closed 5 years ago

flomotlik commented 5 years ago

When installing the latest version either in Docker or on my host the following exception is thrown:

Traceback (most recent call last):
  File "/usr/local/bin/cosmic-ray", line 6, in <module>
    from cosmic_ray.cli import main
  File "/usr/local/lib/python3.7/site-packages/cosmic_ray/cli.py", line 67, in <module>
    doc_template=DOC_TEMPLATE)
TypeError: __init__() got an unexpected keyword argument 'version'

I'm not sure what the specific issue here is, but could send a PR if you clear up that question.

abingham commented 5 years ago

The problem is almost certainly related to changes in the docopt_subcommands API. CR needs to specify the correct version range in its setup. I'll try to sort that out soon.

If you want to brute-force past this for now, you can pip uninstall docopt_subcommands and then pip install docopt_subcommands==3.0.0. This should get things working.

If you've got the time to create a PR that sets the correct version in setup.py, that would be awesome. Thanks for reporting this!

On Tue, Jun 25, 2019 at 2:13 PM Florian Motlik notifications@github.com wrote:

When installing the latest version either in Docker or on my host the following exception is thrown:

Traceback (most recent call last): File "/usr/local/bin/cosmic-ray", line 6, in from cosmic_ray.cli import main File "/usr/local/lib/python3.7/site-packages/cosmic_ray/cli.py", line 67, in doc_template=DOC_TEMPLATE) TypeError: init() got an unexpected keyword argument 'version'

I'm not sure what the specific issue here is, but could send a PR if you clear up that question.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sixty-north/cosmic-ray/issues/448?email_source=notifications&email_token=AAATK6EDGAYIHYCFUCYUSY3P4IDXPA5CNFSM4H3HUWGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3Q6WZQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAATK6D3V55X4W2AS6VNZALP4IDXPANCNFSM4H3HUWGA .