Closed m-doescode closed 1 year ago
Hello !
Thank you for the detailed issue. Indeed the ALPC samples were not tested on python3. I made a PR inspired from your remarks that match my code habits on str/bytes issue and try to keep the display of the sample nice on py3. See #45.
Does it works for you ? If so, I will also close #38.
It seems like in the file
samples/alpc/simple_alpc.py
there is an error which causes it not to run.For one, there are many references to print without parentheses, not sure if this is intended but it does not run without them, so I added them beforehand.
Second, every time I run it unmodified, (apart from the edit as mentioned above) I get this error:
Solution
It seems like you cannot use regular strings with the message data and must instead use bytes. So, the solution is simply to replace any time
msg.data
is set with a string with bytes:End
If you approve this issue, I will create a pull request so that this can be updated.
Upon further examination
It seems like this is related to #38 The author of the pull request attempts to solve the issue by modifying the
alpc.py
API, whereas my solution was to modify the samplesimple_alpc.py