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 running Python script in Windows #11

Closed
tcboy88 opened this issue Mar 21, 2019 · 2 comments
Closed

Error running Python script in Windows #11

tcboy88 opened this issue Mar 21, 2019 · 2 comments

Comments

@tcboy88
Copy link

tcboy88 commented Mar 21, 2019

In Windows, I get this error in Python 3
calibrationArray = struct.unpack('BBBBIffffffffffffffffffffffffffffffffffffI', bytes(calibrationBytes))
ValueError: bytes must be in range(0, 256)

And this error in Python 2
calibrationArray = struct.unpack('BBBBIffffffffffffffffffffffffffffffffffffI', bytes(calibrationBytes))
struct.error: unpack requires a string argument of length 156

any suggestion? Thanks.

@tcboy88 tcboy88 closed this as completed Mar 21, 2019
@felixekman
Copy link

I've got the same issues as well, tried on several platforms and it all persists. I have also recalibrated several times.

@gitunit
Copy link

gitunit commented Sep 14, 2019

in line 168 of leapuvc.py change to the following:
calibrationArray = struct.unpack('BBBBIffffffffffffffffffffffffffffffffffffI', bytes(calibrationBytes)[0:156])

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