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

Possible Windows 10 c_ubyte issue #64

Open
towlerj opened this issue May 8, 2020 · 1 comment
Open

Possible Windows 10 c_ubyte issue #64

towlerj opened this issue May 8, 2020 · 1 comment

Comments

@towlerj
Copy link

towlerj commented May 8, 2020

On Windows 10 I had problems with an ord() command.

It appears that the problem command was line 234 in blinkstick.py:
data = (c_ubyte * len(data_or_wLength))(*[c_ubyte(ord(c)) for c in data_or_wLength])

I changed this to:

try:
    data = (c_ubyte * len(data_or_wLength))(*[c_ubyte(ord(c)) for c in data_or_wLength])
except:
    data = (c_ubyte * len(data_or_wLength))(*[c_ubyte(c) for c in data_or_wLength])

which appeared to resolve the issue.

I had assumed it was a Python 3 issue, so logged out of Windows and in to another system to go through updating, but on Linux (Ubuntu 19.10) and python 3.7.4 I don't have the same issue.

next time I'm logged in to that Win10 box I'll check the python version.

@mjsr
Copy link

mjsr commented Sep 12, 2020

Could reproduce on Windows 10 with Python 3.6.4.

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