Closed quozl closed 4 years ago
I'm trying to work on this issue, trying to replace stream_id = ord(message.data[0])
with stream_id = message.data[0]
; I'm not sure how to update gwebsockets 0.6 in the SugarLiveBuild to 0.7 .
I have tried:
Also, assuming either of these did work, using the browse activity should throw the same error?
Please let me know how to go about it. (I have sent a similar message on the IRC a while ago but got disconnected while trying to set it up on my phone in order to keep it on 24/7)
Update gwebsockets in Sugar Live Build by following the same method already used, see https://github.com/sugarlabs/sugar-live-build/blob/master/src/config/hooks/normal/0900-sugar.hook.chroot#L46
I've Ubuntu 20.04 packages of gwebsockets latest in my package archive, if you'd like to use that instead. It is more recent than Sugar Live Build.
No, using the Browse activity has nothing to do with this problem. Browse is not a Sugar Web activity and does not interact with gwebsockets.
The Gears activity is one you might try.
Regarding IRC, don't expect anyone to answer any questions that are more than about an hour old. We don't bother with that, because we usually find people have solved what they were asking about and had neglected to tell us. We use IRC most when two or more people are in attendance. It is not a store-and-forward network like mail or GitHub issues.
Thanks, I believe I've managed to fix the type issue after testing it on the gears activity #911
The issue is solved by f1ac684. We may close this now.
Thanks, I agree.
apisocket.py implements a communication channel between a Sugar Web activity and the Sugar shell and Journal. It is an important part of Sugar.
apisocket.py was automatically ported to Python 3 using
2to3
. Testing revealed regressions. The regressions revealed the porting was not done by a human. Rather than fix each regression, the port to Python 3 should be repeated using our Python 3 Porting Guide and other guides.Commits will need to explain the changes and tests so that we can reach consensus.
Reproducer: start and stop a web activity on Sugar 0.116 with gwebsockets 0.7
shell.log contains