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

Invalid parser option #9

Closed
szszszsz opened this issue Mar 6, 2019 · 3 comments
Closed

Invalid parser option #9

szszszsz opened this issue Mar 6, 2019 · 3 comments

Comments

@szszszsz
Copy link
Contributor

szszszsz commented Mar 6, 2019

Solo-python crashes just after running. It looks like one of the parser options are invalid. Log below.

Version: solo-python==0.0.6
Python: Python 3.7.2
OS: Fedora 29

Installed without errors via pip3 install solo-python --user.

$ solo
Traceback (most recent call last):
  File "/home/sz/.local/bin/solo", line 7, in <module>
    from solo.cli import solo_cli
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/__init__.py", line 17, in <module>
    from solo.cli.key import key
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/key.py", line 18, in <module>
    from solo.cli.update import update
  File "/home/sz/.local/lib/python3.7/site-packages/solo/cli/update.py", line 41, in <module>
    help="Development option: pull firmware from http://localhost:8000",
  File "/usr/lib/python3.7/site-packages/click/decorators.py", line 170, in decorator
    _param_memo(f, OptionClass(param_decls, **attrs))
  File "/usr/lib/python3.7/site-packages/click/core.py", line 1459, in __init__
    Parameter.__init__(self, param_decls, type=type, **attrs)
TypeError: __init__() got an unexpected keyword argument 'hidden'
@nickray
Copy link
Member

nickray commented Mar 6, 2019

Are you using an old version of click? Current is 7.0, should have hidden: pallets/click#500

@szszszsz
Copy link
Contributor Author

szszszsz commented Mar 7, 2019

Hi!

Yes, I do apparently:

$ pip3 freeze | grep click
click==6.7                                                            
click-completion==0.3.1                                               

Update with pip3 install --upgrade click --user helped, thank you! In that case adding a hard version dependency would prevent this issue to occur on other installations.

@nickray
Copy link
Member

nickray commented Mar 8, 2019

Fixed in v0.0.7

@nickray nickray closed this as completed Mar 18, 2019
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

2 participants