You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: launch_app_config() got an unexpected keyword argument 'app_id'
complete error:
Traceback (most recent call last):
File "/usr/local/bin/pyvizio", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/pyvizio/helpers.py", line 13, in wrapper
return asyncio.run(f(*args, **kwargs))
File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
TypeError: launch_app_config() got an unexpected keyword argument 'app_id'
My knowledge of Python is very basic so I patched the error by changing all the named arguments in cli.py to lower case
Mismatched upper/lower case named arguments in launch-app-config (e.g. APP_ID vs app_id)
when issuing:
root@localhost:~# /usr/local/bin/pyvizio --ip=xxx.xxx.xxx.xxx --device_type=tv --auth=xxxxxxxxxxx launch-app-config 4 3
error received:
TypeError: launch_app_config() got an unexpected keyword argument 'app_id'
complete error:
Traceback (most recent call last):
File "/usr/local/bin/pyvizio", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/pyvizio/helpers.py", line 13, in wrapper
return asyncio.run(f(*args, **kwargs))
File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
TypeError: launch_app_config() got an unexpected keyword argument 'app_id'
My knowledge of Python is very basic so I patched the error by changing all the named arguments in cli.py to lower case
FILE: /usr/local/lib/python3.9/dist-packages/pyvizio/cli.py
LINE: async def launch_app_config(...
OLD: vizio: VizioAsync, APP_ID: str, NAME_SPACE: int, MESSAGE: str
NEW: vizio: VizioAsync, app_id: str, name_space: int, message: str
I also replaced all subsequent referenecs to this arguments within that same function
The text was updated successfully, but these errors were encountered: