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

TypeError: not all arguments converted during string formatting #385

Closed
bennychee opened this issue Oct 4, 2018 · 3 comments
Closed

TypeError: not all arguments converted during string formatting #385

bennychee opened this issue Oct 4, 2018 · 3 comments
Assignees

Comments

@bennychee
Copy link

When running miio-extract-tokens, i get the following error:

# miio-extract-tokens backup.ab
Traceback (most recent call last):
  File "/usr/local/bin/miio-extract-tokens", line 7, in <module>
    from miio.extract_tokens import main
  File "/usr/local/lib/python3.4/dist-packages/miio/__init__.py", line 2, in <module>
    from miio.airconditioningcompanion import AirConditioningCompanion
  File "/usr/local/lib/python3.4/dist-packages/miio/airconditioningcompanion.py", line 7, in <module>
    from .click_common import command, format_output, EnumType
  File "/usr/local/lib/python3.4/dist-packages/miio/click_common.py", line 9, in <module>
    sys.version_info)
TypeError: not all arguments converted during string formatting

Any idea how to resolve this?

@syssi syssi self-assigned this Oct 4, 2018
@rytilahti
Copy link
Owner

You have to use python 3.5 or newer. However, the error should be fixed, too. The error is caused by the fact that sys.version_info is a tuple, but the format string has just a single placeholder in place.

@salcabo
Copy link

salcabo commented Oct 31, 2018

I have the same problem, unistalled python 2.7 and cheked version 3.5 is running.

I must say I'm totaly new

@rytilahti
Copy link
Owner

What is the full stack trace? In original reporter's case that was 3.4 as can be seen from the stack trace, version 3.5 should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants