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
{{ message }}
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
I tried to import uhashlib and it doesn't appear to be implemented.
I'm using the latest daily build: esp32-20170911-v1.9.2-270-g14fb53e0.bin
Is there currently any support for sha1?
I noticed that as well. All of the libraries that start with 'u' should
import without the 'u'.
I think that this might be a legitimate issue with aliasing. I'll look into
it.
MicroPython v1.9.2-270-g14fb53e0 on 2017-09-12; ESP32 module with ESP32
Type "help()" for more information.
>>> import uhashlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'uhashlib'
>>> import hashlib
>>>
It also doesn't appear in help('modules')
OK, so the new esp32-specific module was in MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS but wasn't in MICROPY_PORT_BUILTIN_MODULES, is all.
Activity
MrSurly commentedon Sep 11, 2017
Works for me, and the hash is correct. Can you send any code that isn't working?
rdagger commentedon Sep 11, 2017
Thanks!
MrSurly commentedon Sep 11, 2017
If this is resolved, please close.
rdagger commentedon Sep 11, 2017
The issue I had was the docs refer to the library as uhashlib instead of just hashlib. Thanks again.
MrSurly commentedon Sep 11, 2017
nickzoic commentedon Sep 12, 2017
Yeah, just rebuilt and
uhashlibwon't importIt also doesn't appear in
help('modules')OK, so the new esp32-specific module was in MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS but wasn't in MICROPY_PORT_BUILTIN_MODULES, is all.
Add missing uhashlib back in micropython#178
MrSurly commentedon Sep 30, 2017
@nickzoic Is this still an issue?
Add missing uhashlib back in micropython#178
Add missing uhashlib back in #178
nickzoic commentedon Oct 1, 2017
Ok, merged #179 and closing this ...