Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script fails after attribute list step #78

Closed
vulcanmike opened this issue Jan 6, 2021 · 3 comments
Closed

Script fails after attribute list step #78

vulcanmike opened this issue Jan 6, 2021 · 3 comments
Labels

Comments

@vulcanmike
Copy link

Using the latest Python 3, the script is failing at the point below. (Script fully fails on pypy and Python 2.7 with a "TypeError: category() argument 1 must be unicode, not str" error).

INFO:root:Adding extra attributes from $ATTRIBUTE_LIST
Traceback (most recent call last):
  File "/mnt/image/RecuperaBit-master/main.py", line 374, in <module>
    main()
  File "/mnt/image/RecuperaBit-master/main.py", line 357, in main
    parts.update(scanner.get_partitions())
  File "/mnt/image/RecuperaBit-master/recuperabit/fs/ntfs.py", line 836, in get_partitions
    self.finalize_reconstruction(part)
  File "/mnt/image/RecuperaBit-master/recuperabit/fs/ntfs.py", line 672, in finalize_reconstruction
    self.add_from_attribute_list(parsed, part, node.offset)
  File "/mnt/image/RecuperaBit-master/recuperabit/fs/ntfs.py", line 627, in add_from_attribute_list
    _integrate_attribute_list(parsed, part, image)
  File "/mnt/image/RecuperaBit-master/recuperabit/fs/ntfs.py", line 238, in _integrate_attribute_list
    (len(files) == 1 and iter(files).next() == base_record)
AttributeError: 'set_iterator' object has no attribute 'next'
@Lazza
Copy link
Owner

Lazza commented Jan 7, 2021

Thank you for reporting this issue, I will check it out.

Regarding Python 2, it is not supported anymore.

@Lazza Lazza added the bug label Jan 7, 2021
@norristh
Copy link

norristh commented Jan 9, 2021

I get the same error with the latest RecuperaBit, and with pypy3 version 7.3.1 and with python3 version 3.8.5.

Is this likely a bug in the latest version of RecuperaBit? Is it worth getting a previous version and trying that? Will the save file be compatible with a previous version?

@Lazza Lazza closed this as completed in 89cbabd Jan 11, 2021
@Lazza
Copy link
Owner

Lazza commented Jan 11, 2021

Is this likely a bug in the latest version of RecuperaBit?

Yes.

Is it worth getting a previous version and trying that?

No. Older versions require Python 2. I would use 1.1.3 instead.

Will the save file be compatible with a previous version?

Probably yes. Currently it is extremely basic and it needs a revamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants