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

AttributeError: module 'pyzatt.misc' has no attribute 'print_hex' #21

Open
suzondas opened this issue Dec 31, 2020 · 1 comment
Open

Comments

@suzondas
Copy link

  • PyZatt version: 2
  • Python version: 3.7.4
  • Operating System: Windows 10 64 bit

Description

I wanted to check realtime for my Zkteco F18/ID machine. When I try to run I get following conclusion.

What I Did

D:\xampp\htdocs\tad-php-mysql\pyzatt-master\tests>python test_realtime.py

running manual test
?[1m?[32m
################################################################################
#       TEST OF REALTIME FUNCTIONS
?[0m
?[1m?[32m
################################################################################
#       1.Realtime Test
?[0m
Invalid checksum
Bad start tag
Bad start tag
?[1m?[32mReady to receive events from the machine?[0m
Bad start tag

##################################################
Received event
Unknown event:
Traceback (most recent call last):
  File "test_realtime.py", line 134, in <module>
    test_realtime(opts)
  File "test_realtime.py", line 123, in test_realtime
    misc.print_hex(z.get_last_packet())
AttributeError: module 'pyzatt.misc' has no attribute 'print_hex'

@suzondas
Copy link
Author

suzondas commented Jan 9, 2021

After digging out, I found the issue with z.read_all_user_id() function. When My machine get user more thean 940 then this function returns :
Invalid checksum
Bad start tag
Bad start tag
?[1m?[32mReady to receive events from the machine?[0m
Bad start tag

Can you look for the issue?

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

1 participant