Device is ESP32, this is what I’m seeing from the REPL:
MicroPython v1.14 on 2021-02-02; ESP32 module with ESP32
Type "help()" for more information.
>>> import notecard
>>> from notecard import hub
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: can't import name hub
>>>
Hey @ec123 I haven’t forgotten about this, by my apologies for the delay. Assuming you are still seeing this issue, I will try to grab an ESP32 and look today.
Ah, that looks like a bug unique to the MicroPython environment. Thanks for the additional context. Glad you found a workaround, and I’ll see about getting a proper fix into the library.
Thanks again for flagging these issues ed. I can throw a fix in for the validators issue specific to MicroPython and will push that along with some fixes that @gwolff just submitted.
For functools, you should actually be able to get it in MicroPython with upip install functools rather than manually copying it into the lib directory. Did you try that?