EricGoldsteinNz / tadpole

Device Management Tool for the SF2000 / Datafrog retro gaming handheld
Other
99 stars 11 forks source link

Crash due to wrong python version (module 'hashlib' has no attribute 'file_digest') when trying bootloader fix #70

Open nspo opened 7 months ago

nspo commented 7 months ago

OS: Ubuntu 22.04.4 LTS Using system python3 version

~/D/t/tadpole-1.3.3> python3 --version
Python 3.10.12
~/D/t/tadpole-1.3.3> python3 tadpole.py
[...]
# select OS -> Firmware -> Bootloader fix -> Yes
downloading https://github.com/EricGoldsteinNz/SF2000_Resources/blob/60659cc783263614c20a60f6e2dd689d319c04f6/OS/Firmware.upk?raw=true to /media/somename/C2A6-503B/UpdateFirmware/Firmware.upk
Traceback (most recent call last):
  File "/home/somename/Downloads/tmp/tadpole-1.3.3/tadpole.py", line 936, in bootloaderPatch
    downloadedchecksum = hashlib.file_digest(f, 'sha256').hexdigest()
AttributeError: module 'hashlib' has no attribute 'file_digest'

I assume that Ubuntu 22.04's Python version, and consequently its hashlib, is not compatible. Would be necessary to know the exact python versions that work or to have a flatpak etc.