Skip to content

Error: string argument without an encoding #80

@jaredvv86

Description

@jaredvv86

Was running the program on a 500GB drive hoping I could save. I got the following error. Every thing seemed to be going okay. Was kind of slow but that is probably my fault.

I used the windows Subsystem for Linux. Using regular Python 3.

Any ideas?

INFO:root:Finalizing MFT reconstruction of partition at offset 63
INFO:root:Adding extra attributes from $ATTRIBUTE_LIST
INFO:root:Adding ghost entries from $INDEX_ALLOCATION
DEBUG:root:Found MATCH in positions {428583} with weight 169329 (88.87774972574914%)
INFO:root:Finalizing MFT reconstruction of partition at offset 63
INFO:root:Adding extra attributes from $ATTRIBUTE_LIST
INFO:root:Adding ghost entries from $INDEX_ALLOCATION
WARNING:root:Cannot read sector(s). Filling with 0x00. Offset: 396329295 Size: 8 Bsize: 512
Traceback (most recent call last):
  File "main.py", line 374, in <module>
    main()
  File "main.py", line 357, in main
    parts.update(scanner.get_partitions())
  File "/mnt/c/Users/Jared2/Desktop/RecuperaBit-master/recuperabit/fs/ntfs.py", line 837, in get_partitions
    self.finalize_reconstruction(part)
  File "/mnt/c/Users/Jared2/Desktop/RecuperaBit-master/recuperabit/fs/ntfs.py", line 685, in finalize_reconstruction
    self.add_from_indx_allocation(parsed, part)
  File "/mnt/c/Users/Jared2/Desktop/RecuperaBit-master/recuperabit/fs/ntfs.py", line 615, in add_from_indx_allocation
    dump = sectors(img, position, INDX_size)
  File "/mnt/c/Users/Jared2/Desktop/RecuperaBit-master/recuperabit/utils.py", line 61, in sectors
    return bytearray(dump)
TypeError: string argument without an encoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions