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

error with python 3.8 #34

Open
ankitkgupta09 opened this issue Jan 3, 2020 · 2 comments
Open

error with python 3.8 #34

ankitkgupta09 opened this issue Jan 3, 2020 · 2 comments

Comments

@ankitkgupta09
Copy link

I am using https://github.com/pavel-a/usb-relay-hid/blob/master/Test/test2m.py implementation with python 3.8 same code works fine with Python 2.8, which failed with error "ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert"
Any workaround or suggestion to fix this issue?

@markusc90
Copy link

It looks like there is an error on line 68.

("usb_relay_device_close_all_relay_channel", 'e', None)

should actually be changed to

("usb_relay_device_close_all_relay_channel", 'e', 'h')

@kevin-zsj
Copy link

It looks like there is an error on line 68.

("usb_relay_device_close_all_relay_channel", 'e', None)

should actually be changed to

("usb_relay_device_close_all_relay_channel", 'e', 'h')

Thank you very mach, it worked.

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

3 participants