Skip to content

uv3rFlash.py: b2a_hex argument 1 must be string or read-only buffer, not bytearray. #5

Description

@paretech

I'm using the latest (4/1/2013) version of uv3rFlash.py with Python 2.6.1 (distributed with OS X 10.6.8).

With this version of python I receive the following error (traceback).

Traceback (most recent call last):
  File "./uv3rFlash.py", line 334, in <module>
    sendBuffer(startAddr, programBuff)
  File "./uv3rFlash.py", line 234, in sendBuffer
    binascii.b2a_hex(buff[i:i+blockSize]).upper())
TypeError: b2a_hex() argument 1 must be string or read-only buffer, not bytearray

This error does not occur on python 2.7.3 tested in Arch virtual machine (VM).

This may leave users in a in between device state (i.e. their device may not power up as expected), at least I can't seem to power up my device at this time with the given firmware. I'll look into it more in the coming days.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions