You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from spike import PrimeHub
hub = PrimeHub()
hub.left_button.wait_until_pressed()
What did you expect to happen?
No response
What actually happened?
HUB: sync filesystems
HUB: soft reboot
raw REPL; CTRL-B to exit
>OK
�Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "spike/__init__.py", line 1, in <module>
File "_api/__init__.py", line 1, in <module>
File "_api/speaker.py", line 1, in <module>
File "system/__init__.py", line 1, in <module>
File "system/callbacks/__init__.py", line 1, in <module>
File "util/error_handler.py", line 1, in <module>
File "protocol/__init__.py", line 1, in <module>
File "protocol/rpc_protocol.py", line 1, in <module>
File "protocol/notifications.py", line 1, in <module>
RuntimeError: maximum recursion depth exceeded
�>
MicroPython v1.14-876-gfbecba865 on 2021-05-04; LEGO Technic Large Hub with STM32F413xx
Type "help()" for more information.
>>>
Operating System Version
MacOS 12.0.1
Mu Version
1.1.0.beta.6
Other Info
No response
Editor Log
No response
The text was updated successfully, but these errors were encountered:
Sorry. There was something wrong with my code. I didn't know the module name was "hub". I considered it was "spike", the same as Lego official App "SPIKE".
Thanks for your help.
This error happens when you import spike without importing other dependent modules first. I think LEGO hasn't noticed this (or doesn't care), because they import hub_runtime first in the regular setup.
Assuming you don't want to load the rather heavy hub_runtime, the best work-around I know, is importing _api before importing spike.
What were you trying to do?
Wrote MicroPython on Lego SPIKE
What steps did you take to trigger the issue?
Here is the code I wrote:
What did you expect to happen?
No response
What actually happened?
Operating System Version
MacOS 12.0.1
Mu Version
1.1.0.beta.6
Other Info
No response
Editor Log
No response
The text was updated successfully, but these errors were encountered: