0

ubinascii error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ubinascii error

by justanotherjoe on Mon Jan 27, 2020 10:48 am

When I install adafruit-circuitpython-feather_huzzah-3.1.2.bin on my huzza board I get the following error when attempting to use the ampy get command

Code: Select all | TOGGLE FULL SIZE
$ ampy --baud 115200 --port /dev/ttyUSB0 ls
/boot.py
/testing.py
$ ampy --baud 115200 --port /dev/ttyUSB0 get testing.py
Traceback (most recent call last):
  File "/usr/local/bin/ampy", line 11, in <module>
    load_entry_point('adafruit-ampy==1.0.8.dev19+g2443bfc', 'console_scripts', 'ampy')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ampy-1.0.8.dev19+g2443bfc-py3.7.egg/ampy/cli.py", line 126, in get
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ampy-1.0.8.dev19+g2443bfc-py3.7.egg/ampy/files.py", line 82, in get
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ampy-1.0.8.dev19+g2443bfc-py3.7.egg/ampy/files.py", line 74, in get
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ampy-1.0.8.dev19+g2443bfc-py3.7.egg/ampy/pyboard.py", line 274, in exec_
ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n  File "<stdin>", line 3, in <module>\r\nImportError: no module named \'ubinascii\'\r\n')


If I flash it with esp8266-20191220-v1.12.bin I am able to use ampy get as expected. How can I fix this when using circuit python?

justanotherjoe
 
Posts: 11
Joined: Fri Sep 24, 2010 11:37 pm

Re: ubinascii error

by adafruit_support_mike on Wed Jan 29, 2020 2:12 am

[moved to the CircuitPython forum]

adafruit_support_mike
 
Posts: 60735
Joined: Thu Feb 11, 2010 2:51 pm

Re: ubinascii error

by tannewt on Wed Jan 29, 2020 2:04 pm

ubinascii was renamed to binascii during CircuitPython 3.0.0 development. You can use a 2.x version or fix ampy to refer to binascii. We've dropped support for both the ESP8266 and Ampy since then because the ESP chips don't have native USB and therefore the CIRCUITPY drive doesn't work.

tannewt
 
Posts: 1490
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.