Skip to content

Default build has "binascii" but inisetup.py wants "ubinascii" #795

@larsks

Description

@larsks

Building the esp8266 port from 9d484c4, I see the following when I boot my board:

#5 ets_task(40100394, 3, 3fff83f0, 4)
Performing initial setup
Traceback (most recent call last):
  File "_boot.py", line 12, in <module>
  File "inisetup.py", line 38, in setup
  File "inisetup.py", line 6, in wifi
ImportError: no module named 'ubinascii'

The inisetup.py module is looking for ubinascii, but only binascii is available:

>>> import ubinascii
ImportError: no module named 'ubinascii'
>>> import binascii
>>>

We should probably modify inisetup.py to use the same import semantics as websocket_helper.py:

try:
    import ubinascii as binascii
except:
    import binascii

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions