Skip to content

TypeError: __init__() got an unexpected keyword argument 'package_name' #311

@memecode

Description

@memecode

Current git gives me this error:

Traceback (most recent call last):
File "c:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "c:\Users\Matthew\AppData\Roaming\Python\Python39\Scripts\kasa.exe_main
.py", line 4, in
File "C:\Users\Matthew\AppData\Roaming\Python\Python39\site-packages\kasa\cli.py", line 61, in
async def cli(ctx, host, alias, target, debug, bulb, plug, lightstrip, strip, type):
File "C:\Users\Matthew\AppData\Roaming\Python\Python39\site-packages\asyncclick\decorators.py", line 304, in decorator
return option(*(param_decls or ("--version",)), **attrs)(f)
File "C:\Users\Matthew\AppData\Roaming\Python\Python39\site-packages\asyncclick\decorators.py", line 192, in decorator
_param_memo(f, OptionClass(param_decls, **option_attrs))
File "C:\Users\Matthew\AppData\Roaming\Python\Python39\site-packages\asyncclick\core.py", line 1750, in init
Parameter.init(self, param_decls, type=type, **attrs)
TypeError: init() got an unexpected keyword argument 'package_name'

I cloned the repo, ran "poetry install" and then "kasa discover". As per instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions