Skip to content

subcon should be a Construct field #641

@h4wkmoon

Description

@h4wkmoon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions