Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching miiocli --version get an error #1991

Open
antoweb opened this issue Dec 12, 2024 · 0 comments
Open

Launching miiocli --version get an error #1991

antoweb opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@antoweb
Copy link

antoweb commented Dec 12, 2024

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 --version or pip 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.

@antoweb antoweb added the bug label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant