8000 Improve poetry usage documentation · Issue #60 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content
Improve poetry usage documentation #60
Closed
@xywang84

Description

@xywang84

Greatly appreciate the work done in this project, I had recently gotten a build of this to work on May 2nd, but it seems like the installation process has changed dramatically in this short time. Haivng some problems with the new flow, and would appreciate some help in resolving if possible.

Running on a Raspberry Pi Model 3B+ on Buster. Python version is 3.7. After running the newly updated install process using:

poetry install
pre-commit install

The installation appears to be successful with the following output:

pi@raspberrypi2:~/www/python/python-kasa $ sudo poetry install
Creating virtualenv python-kasa-BwJufRoA-py3.7 in /root/.cache/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 40 installs, 0 updates, 0 removals

  • Installing zipp (3.1.0)
  • Installing importlib-metadata (1.6.0)
  • Installing pyparsing (2.4.7)
  • Installing six (1.14.0)
  • Installing appdirs (1.4.4)
  • Installing async-generator (1.10)
  • Installing attrs (19.3.0)
  • Installing certifi (2020.4.5.1)
  • Installing chardet (3.0.4)
  • Installing distlib (0.3.0)
  • Installing filelock (3.0.12)
  • Installing idna (2.9)
  • Installing more-itertools (8.3.0)
  • Installing packaging (20.3)
  • Installing pluggy (0.13.1)
  • Installing py (1.8.1)
  • Installing sniffio (1.1.0)
  • Installing urllib3 (1.25.9)
  • Installing wcwidth (0.1.9)
  • Installing anyio (1.3.0)
  • Installing cfgv (3.1.0)
  • Installing coverage (5.1)
  • Installing identify (1.4.15)
  • Installing nodeenv (1.3.5)
  • Installing pytest (5.4.2)
  • Installing pyyaml (5.3.1)
  • Installing requests (2.23.0)
  • Installing termcolor (1.1.0)
  • Installing toml (0.10.1)
  • Installing virtualenv (20.0.20)
  • Installing asyncclick (7.0.9)
  • Installing codecov (2.0.22)
  • Installing pre-commit (2.4.0)
  • Installing pytest-asyncio (0.11.0)
  • Installing pytest-azurepipelines (0.8.0)
  • Installing pytest-cov (2.8.1)
  • Installing pytest-mock (3.1.0)
  • Installing pytest-sugar (0.9.3)
  • Installing tox (3.15.0)
  • Installing voluptuous (0.11.7)
  • Installing python-kasa (0.4.0.dev0)

pi@raspberrypi2:~/www/python/python-kasa $ sudo pre-commit install
pre-commit installed at .git/hooks/pre-commit

However after this is done, there is no kasa module in my python3.7 and the previously working "kasa" CLI program is not found on the path.

With the previous setup.py based flow, the kasa libraries were installed at a location in the $PATH but this is no longer the case.

Question is where is the kasa.py CLI program expected to be? And why is the kasa module not linking to my python environment?

I originally thought running this as root with sudo would possibly work, but no luck there either.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0