FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

New problem with installing on Ubuntu 20.04.3 LTS · Issue #305 · python-kasa/python-kasa · GitHub

Repository navigation

New problem with installing on Ubuntu 20.04.3 LTS #305

Closed

Description

I had kasa working on this system months ago. I haven't used it for a few weeks and it appears that unrelated updates cause kasa to fail (No module named 'importlib_metadata' with python3.8). I found a python issue - apparently the underscore changed to a period. I knew kasa was out of date, so I did a pip3 uninstall kasa followed by pip3 install kasa. This fails with
Traceback (most recent call last):
File "/usr/local/bin/kasa", line 5, in
from kasa.cli import cli
File "/usr/local/lib/python3.8/dist-packages/kasa/cli.py", line 61, in
async def cli(ctx, host, alias, target, debug, bulb, plug, lightstrip, strip, type):
File "/usr/local/lib/python3.8/dist-packages/asyncclick/decorators.py", line 304, in decorator
return option(*(param_decls or ("--version",)), **attrs)(f)
File "/usr/local/lib/python3.8/dist-packages/asyncclick/decorators.py", line 192, in decorator
_param_memo(f, OptionClass(param_decls, **option_attrs))
File "/usr/local/lib/python3.8/dist-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'

This could be my error or a bug.

Activity

  1. rytilahti commented on Feb 3, 2022

    Member

    This is a regression caused by #286 if you do pip install -U click it should start working (with click >= 8). Alternatively, you can modify that line by removing the package_name.

  2. paulvonbehren commented on Feb 4, 2022

    Author

    I upgraded click as rytilahti described and also had to update asyncclick. The I hit the problem is bug #302 when I tested with kasa discover. But testing the KP115 plug with emeter is fine. So I'm closing this; thanks for the hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL