amazfitbip / tools

GNU General Public License v2.0
126 stars 57 forks source link

bipfont.py unpack is not working #59

Open Stefan1200-de opened 6 years ago

Stefan1200-de commented 6 years ago

I tried to unpack different amazfit font files, but bipfont.py use an unsupported operand:

bipfont.py unpack ISOCPEUR.ft ('Unpacking', 'ISOCPEUR.ft') Traceback (most recent call last): File "D:\Downloads\Amazfit Bip\AmazfitBip-tools-master\bipfont.py", line 148, in <module> unpackFont(sys.argv[2]) File "D:\Downloads\Amazfit Bip\AmazfitBip-tools-master\bipfont.py", line 33, in unpackFont num_ranges = (header[0x21] << 8) + header[0x20] TypeError: unsupported operand type(s) for <<: 'str' and 'int'

Using Python 2.7, Pillow 5.3.0 and the newest pathlib library for AMD64 on Windows 10. What can I do here to fix this issue?

Update: The amazfitbip tools readme told me that Python 2.7 is required. But it is not working. It seems that Python 3+ is required, because with Python 3.6.6 it is working. So the only issue here is updating the system requirements in the readme file.

rysson commented 1 year ago

Yes, script reads ranges (eg. 253) and use the only last one. There is really something wrong.