Skip to content

Missing dependency: pyyaml #986

Closed
@ccoors

Description

@ccoors

Describe the bug
python-miio imports yaml, but pyyaml is not listed as a dependency.

Version information (please complete the following information):

  • OS: Linux
  • python-miio: 0.5.5.1

To Reproduce
Steps to reproduce the behavior:

  1. virtualenv venv
  2. source venv/bin/activate
  3. pip install python-miio
  4. Run miiocli or any other command:
$ miiocli
Traceback (most recent call last):
  File "venv/bin/miiocli", line 5, in <module>
    from miio.cli import create_cli
  File "venv/lib/python3.9/site-packages/miio/__init__.py", line 40, in 
    from miio.gateway import Gateway
  File "venv/lib/python3.9/site-packages/miio/gateway/__init__.py", line
    from .alarm import Alarm
  File "venv/lib/python3.9/site-packages/miio/gateway/alarm.py", line 8,
    from .gatewaydevice import GatewayDevice
  File "venv/lib/python3.9/site-packages/miio/gateway/gatewaydevice.py",
    from .gateway import Gateway
  File "venv/lib/python3.9/site-packages/miio/gateway/gateway.py", line 
    import yaml
ModuleNotFoundError: No module named 'yaml'

Expected behavior
The pyyaml package is installed during pip install python-miio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions