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

Install error with click v8.0.0 #95

Closed
rhysd opened this issue May 14, 2021 · 2 comments · Fixed by #99
Closed

Install error with click v8.0.0 #95

rhysd opened this issue May 14, 2021 · 2 comments · Fixed by #99

Comments

@rhysd
Copy link

rhysd commented May 14, 2021

click v8.0.0 was released at May 12

https://pypi.org/project/click/#history

And some breaking change due to the major release broke this package.

Example error:

Run pip install covimerage
Collecting covimerage
  Downloading covimerage-0.2.1-py3-none-any.whl (16 kB)
Collecting attrs>=16.1.0
  Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting click
  Downloading click-8.0.0-py3-none-any.whl (96 kB)
Collecting coverage<5.0a6
  Downloading coverage-4.5.4.tar.gz (385 kB)
Using legacy 'setup.py install' for coverage, since package 'wheel' is not installed.
Installing collected packages: coverage, click, attrs, covimerage
    Running setup.py install for coverage: started
    Running setup.py install for coverage: finished with status 'done'
Successfully installed attrs-21.2.0 click-8.0.0 coverage-4.5.4 covimerage-0.2.1
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.5/x64/bin/covimerage", line 5, in <module>
    from covimerage.cli import main
  File "/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/covimerage/__init__.py", line 8, in <module>
    from click.utils import string_types
ImportError: cannot import name 'string_types' from 'click.utils' (/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/click/utils.py)
Error: Process completed with exit code 1.

https://github.com/rhysd/clever-f.vim/runs/2583434786

@rhysd
Copy link
Author

rhysd commented May 14, 2021

Note: Workaround for this issue is installing click v7 before installing covimerage.

pip install 'click<8.0.0'
pip install covimerage

rhysd added a commit to rhysd/covimerage that referenced this issue May 14, 2021
@rhysd rhysd mentioned this issue May 14, 2021
blueyed added a commit to blueyed/covimerage that referenced this issue Sep 11, 2021
blueyed added a commit to blueyed/covimerage that referenced this issue Sep 11, 2021
blueyed added a commit that referenced this issue Sep 12, 2021
* build(deps): pin click<7.1

Fixes #95.

* ci: fix py34
@blueyed
Copy link
Member

blueyed commented Sep 12, 2021

Fixed in v0.2.2 (just released).
Sorry that it took so long.
Compatibility with click 8 will be done in #97.

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

Successfully merging a pull request may close this issue.

2 participants