Skip to content

decoding str is not supported #8

Description

@MarioMasta64

appears to error out on windows 11 (specifically every problem seems to be "decoding str is not supported"):

Lines to write (should be a whole number) -
344
Traceback (most recent call last):
  File "mount.py", line 136, in find_device_id
    lines = str(self.sg_scan(), 'utf-8').split('\n')
TypeError: decoding str is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mount.py", line 232, in get_device_id_i
    return self._device_id or self.find_device_id()
  File "mount.py", line 174, in find_device_id
    self.error(e)
  File "mount.py", line 86, in error
    assert False, '%s' % e
AssertionError: decoding str is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "interface.py", line 51, in get_device_id
    return self._connection.get_device_id_i()
  File "mount.py", line 234, in get_device_id_i
    self.error(e)
  File "mount.py", line 86, in error
    assert False, '%s' % e
AssertionError: decoding str is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pager.py", line 105, in upload
    cmdl = '%s %s -b -s %s -n 2A 00 00 00 00 %s 00 00 20 00' % (self._sg_raw, self._mount_config.device_id, cbf.PACKET_SIZE, byte1)
  File "interface.py", line 53, in get_device_id
    self._connection.rerror(e)
  File "mount.py", line 89, in rerror
    assert False, 'Mount Error: %s' % e
AssertionError: Mount Error: decoding str is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "boot_surgeon.py", line 25, in <module>
  File "boot_surgeon.py", line 16, in do_surgeon_boot
  File "pager.py", line 124, in upload
    self.rerror(e)
  File "pager.py", line 66, in rerror
    assert False, 'Pager Error: %s' % e
AssertionError: Pager Error: Mount Error: decoding str is not supported
[5200] Failed to execute script 'boot_surgeon' due to unhandled exception!
Done! Waiting for Surgeon to come up...

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

    known issueThis issue is known about, but a workaround exists

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions