cli bug: TypeError: __init__() got an unexpected keyword argument 'case_sensitive'
See original GitHub issueWhen I run rio cogeo --help
, I get the following error:
Usage: rio cogeo [OPTIONS]
Warning: entry point could not be loaded. Contact its author for help.
Traceback (most recent call last):
File "/home/ashwin/miniconda3/lib/python3.7/site-packages/click_plugins/core.py", line 37, in decorator
group.add_command(entry_point.load())
File "/home/ashwin/miniconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "/home/ashwin/miniconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/ashwin/miniconda3/lib/python3.7/site-packages/rio_cogeo/scripts/cli.py", line 104, in <module>
type=click.Choice(cog_profiles.keys(), case_sensitive=False),
TypeError: __init__() got an unexpected keyword argument 'case_sensitive'
Options:
--help Show this message and exit.
I’m using the latest version: 2.3.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TypeError: __init__() got an unexpected keyword ... - GitHub
I've been trying to adapt the Fastai Pets classification notebook to a regression problem where the model outputs a Fastai ImagePoints object.
Read more >python - TypeError: __init__() got an unexpected keyword ...
I had a similar problem. In my code I had a line @bp.route('/<init:id>/delete', method=('POST')) The keyword method needs to be changed to ...
Read more >Changelog — PyTorch Lightning 1.8.6 documentation
The PrecisionPlugin.optimizer_step signature changed: The model , optimizer_idx and closure arguments need to be passed as keyword arguments now.
Read more >Issue #934: [CLI] TypeError: __init__() got an unexpected ...
#934 [CLI] TypeError: __init__() got an unexpected keyword argument ... After upgrade to 1.81 (#925) I observe the following error in the Travis...
Read more >TypeError: __init__() got an unexpected keyword argument 'Null'
Re: TypeError: __init__() got an unexpected keyword argument ... Similar to keys in a dictionary, keyword argument names are case sensitive.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ashnair1 @kylebarron I’ve pushed a new release to make sure we ask for click >=7.
Thanks for opening the issue @ashnair1 🙏
Should we restrict
click>=7.0
? It’s currently unrestrictedhttps://github.com/cogeotiff/rio-cogeo/blob/61a7e526fbdd54972236c0cf502f0c00df85a27f/setup.py#L10