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

subcon should be a Construct field #641

Closed
h4wkmoon opened this issue Mar 12, 2020 · 1 comment
Closed

subcon should be a Construct field #641

h4wkmoon opened this issue Mar 12, 2020 · 1 comment

Comments

@h4wkmoon
Copy link

Hi,
this is clearly a duplicate of another issue, but the original is locked.

Fresh install with pip3 :

$ mirobo discover --handshake 1 
Traceback (most recent call last):
  File "/usr/local/bin/mirobo", line 5, in <module>
    from mirobo.vacuum_cli import cli
  File "/usr/local/lib/python3.6/dist-packages/mirobo/__init__.py", line 2, in <module>
    from mirobo.protocol import Message, Utils
  File "/usr/local/lib/python3.6/dist-packages/mirobo/protocol.py", line 155, in <module>
    Const(Int16ub, 0x2131),
  File "/home/fred/.local/lib/python3.6/site-packages/construct/core.py", line 2504, in __init__
    super(Const, self).__init__(subcon)
  File "/home/fred/.local/lib/python3.6/site-packages/construct/core.py", line 670, in __init__
    raise TypeError("subcon should be a Construct field")
TypeError: subcon should be a Construct field

python_mirobo-0.2.0
construct-2.10.56

Am I missing something ?
Could you help me, plz ?

Regards,
Fred.

@rytilahti
Copy link
Owner

That is a very, very old version of mirobo. You should install python-miio instead, please reopen if that doesn't help!

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

2 participants