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

Error controlling gateway #673

Closed
serhatozkara opened this issue Apr 18, 2020 · 3 comments · Fixed by #677
Closed

Error controlling gateway #673

serhatozkara opened this issue Apr 18, 2020 · 3 comments · Fixed by #677
Labels

Comments

@serhatozkara
Copy link

serhatozkara commented Apr 18, 2020

miiocli gateway --ip 192.168.155.110 --token [TOKEN] info command (any gateway command) results in:

  File "/usr/local/bin/miiocli", line 10, in <module>
    sys.exit(create_cli())
  File "/Library/Python/3.7/site-packages/miio/cli.py", line 44, in create_cli
    return cli(auto_envvar_prefix="MIIO")
  File "/Library/Python/3.7/site-packages/miio/click_common.py", line 59, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Python/3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Library/Python/3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Python/3.7/site-packages/click/core.py", line 1256, in invoke
    Command.invoke(self, ctx)
  File "/Library/Python/3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Python/3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Library/Python/3.7/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Library/Python/3.7/site-packages/miio/click_common.py", line 242, in group_callback
    ctx.obj = self.device_class(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'debug'
@rytilahti rytilahti added the bug label Apr 19, 2020
@vers4ce
Copy link

vers4ce commented Apr 19, 2020

Same with python 3.8 libraries

@rytilahti
Copy link
Owner

The linked PR should fix the issue, could you please test it?

@vers4ce
Copy link

vers4ce commented Apr 20, 2020

tested it, works fine, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants