adrobinoga / pyzatt

Python lib to access ZKTeco's standalone devices
MIT License
104 stars 54 forks source link

struct.error: ushort format requires 0 <= number <= 0xffff #14

Open riajulkashem opened 4 years ago

riajulkashem commented 4 years ago

Enroll Fingerprint

I Tried to enroll fingerprint according to test_other.py but i got this error :(

Traceback (most recent call last):
  File "D:/Projects/GitHub/Tman/tman_tests/zkteco_test.py", line 42, in <module>
    outfile.write(z.download_fp(user1_id, user1_fp_idx))
  File "D:\Projects\GitHub\Tman\venv\lib\site-packages\pyzatt-2.0.0-py3.8.egg\pyzatt\zkmodules\data_user.py", line 291, in download_fp
    req_fp.extend(struct.pack('<H', self.id_to_sn(user_id)))
struct.error: ushort format requires 0 <= number <= 0xffff
adrobinoga commented 4 years ago

what device are you using?

riajulkashem commented 4 years ago

what device are you using?

ZKTeco K40 Device