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

bipfont.py unpack is not working #59

Open
Stefan1200-de opened this issue Oct 6, 2018 · 1 comment
Open

bipfont.py unpack is not working #59

Stefan1200-de opened this issue Oct 6, 2018 · 1 comment

Comments

@Stefan1200-de
Copy link

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
Copy link

rysson commented Sep 24, 2023

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

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

No branches or pull requests

2 participants