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
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:
virtualenv venv
source venv/bin/activate
pip install python-miio
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.
The text was updated successfully, but these errors were encountered:
@starkillerOG no worries! It'd be great if you could add a couple of tests to gateway (e.g., verifying that the shipped subdevices file is correctly read by the implementation) next time you work on that code. That'll help catching this sort of issues and potential other issues like incorrectly formatted yaml files :-)
Describe the bug
python-miio imports
yaml
, butpyyaml
is not listed as a dependency.Version information (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
virtualenv venv
source venv/bin/activate
pip install python-miio
miiocli
or any other command:Expected behavior
The
pyyaml
package is installed duringpip install python-miio
.The text was updated successfully, but these errors were encountered: