[SOLVED] Unable to use hashlib in 2.7

5 thoughts on “[SOLVED] Unable to use hashlib in 2.7

  1. Hashlib is supposed to be available as a Python file but I can’t use it in our code:

     

    # trying /sys/hashlib.py
    # trying /sys/hashlib.pyo
    # trying /sys/hashlib.py
    # trying /sys/hashlib.pyo
    #   clear[2] log
    #   clear[2] __file__
    #   clear[2] EHttp
    #   clear[2] posix
    #   clear[2] time
    #   clear[2] __name__
    Traceback (most recent call last):
    File "src/main.py", line 25, in <module>
    File "src/OTAHandler.py", line 6, in <module>
    ImportError: No module named hashlib

     

     
    When the manual says "is available", does it mean available on the modem or available lin a development environent? I haven’t thought of that before.