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

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

Open
riajulkashem opened this issue Apr 5, 2020 · 2 comments
Open

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

riajulkashem opened this issue Apr 5, 2020 · 2 comments
Assignees

Comments

@riajulkashem
Copy link

  • PyZatt version: 2.0.0
  • Python version: 3.8
  • Operating System: Windows 10

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

what device are you using?

@adrobinoga adrobinoga self-assigned this May 13, 2020
@riajulkashem
Copy link
Author

what device are you using?

ZKTeco K40 Device

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