-
-
Notifications
You must be signed in to change notification settings - Fork 598
Launching miiocli --version get an error #1991
Description
Describe the bug
root@raspberrytv:/home/pi# miiocli --version
/usr/local/lib/python3.7/dist-packages/miio/protocol.py:37: CryptographyDeprecationWarning: Python 3.7 is no longer supported by the Python core team and support for it is deprecated in cryptography. A future release of cryptography will remove support for Python 3.7.
from cryptography.hazmat.backends import default_backend
Traceback (most recent call last):
File "/usr/local/bin/miiocli", line 10, in
sys.exit(create_cli())
File "/usr/local/lib/python3.7/dist-packages/miio/cli.py", line 66, in create_cli
return cli(auto_envvar_prefix="MIIO")
File "/usr/local/lib/python3.7/dist-packages/miio/click_common.py", line 51, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1077, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 943, in make_context
self.parse_args(ctx, args)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1644, in parse_args
rest = super().parse_args(ctx, args)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1408, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 2400, in handle_parse_result
value = self.process_value(ctx, value)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 2362, in process_value
value = self.callback(ctx, self, value)
File "/usr/local/lib/python3.7/dist-packages/click/decorators.py", line 509, in callback
) from None
RuntimeError: 'miio' is not installed. Try passing 'package_name' instead.
Version information (please complete the following information):
- OS: [e.g.Linux]
- python-miio: [Use
miiocli --versionorpip show python-miio]
Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:
- Model:
- Hardware version:
- Firmware version:
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug flag.