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

Make the message marshaller compatible with the latest version of Construct #4

Closed
a6a3uh opened this issue Jul 26, 2018 · 4 comments
Closed
Assignees
Labels
minor A minor issue
Milestone

Comments

@a6a3uh
Copy link

a6a3uh commented Jul 26, 2018

Running stuff under clean conda python 3.6 environment gives the following. The setup process is described in other issue.

2018-07-26 13:57:17,113 pid=4703 INFO: quamash: Using Qt Implementation: PyQt5
Traceback (most recent call last):
File "./zubax-kucher", line 22, in
sys.exit(main())
File "... kucher/kucher/main.py", line 47, in main
from .fuhrer import Fuhrer
File "... kucher/kucher/fuhrer/init.py", line 19, in
from kucher.model import device_model
File "... kucher/kucher/model/device_model/init.py", line 19, in
from .communicator import MessageType, Message
File "... kucher/kucher/model/device_model/communicator/init.py", line 17, in
from .communicator import Communicator, CommunicationChannelClosedException, LOOPBACK_PORT_NAME, AnyMessage
File "... kucher/kucher/model/device_model/communicator/communicator.py", line 21, in
from .messages import MessageType, Message, Codec
File "... kucher/kucher/model/device_model/communicator/messages.py", line 339, in
'entries' / TaskStatisticsEntryFormatV1[7:8],
File "... miniconda3/envs/kucher2/lib/python3.6/site-packages/construct/core.py", line 672, in getitem
raise ConstructError("subcon[N] syntax can only be used for Arrays, use GreedyRange(subcon) instead?")
construct.core.ConstructError: subcon[N] syntax can only be used for Arrays, use GreedyRange(subcon) instead?

What I did just to move further on to next issues is replaced line in messages.py:339

'entries' / TaskStatisticsEntryFormatV1[7:8],

by this

'entries' / TaskIDFormat,

Chances this is not correct but this allowed to move on not thinking too much on the program's logic.

@pavel-kirienko
Copy link
Member

You are using a wrong version of construct; please move back to an older one. Version 2.9.40 should work.

Breaking change: MostAwesomeDude/construct@5a4a671
Another affected project: citruz/beacontools#14

I am going to keep this issue open under a different name to make the code compatible with the new construct API later.

@pavel-kirienko pavel-kirienko changed the title probably error in messages.py Make the message marshaller compatible with Construct 2.9.41 Jul 26, 2018
@a6a3uh
Copy link
Author

a6a3uh commented Jul 27, 2018

After using

git submodule update --init --recursive

Correct version of construct is used. Not tested with ESC though as I don't have it available at the moment.

@pavel-kirienko
Copy link
Member

pavel-kirienko commented Aug 1, 2018 via email

@pavel-kirienko pavel-kirienko added minor A minor issue and removed bug labels Jun 11, 2019
@pavel-kirienko pavel-kirienko changed the title Make the message marshaller compatible with Construct 2.9.41 Make the message marshaller compatible with the latest version of Construct Jul 2, 2019
@pavel-kirienko pavel-kirienko added this to the windows milestone Aug 26, 2019
@loicgilbert
Copy link
Contributor

The new construct APIcreates creates errors that doesn’t seem fixable. I’m closing the issue, we will keep the old version of construct for now.

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

No branches or pull requests

3 participants