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

Console script (Windows): Error for struct.unpack #21

Closed
heuer opened this issue Sep 12, 2016 · 0 comments
Closed

Console script (Windows): Error for struct.unpack #21

heuer opened this issue Sep 12, 2016 · 0 comments

Comments

@heuer
Copy link
Owner

heuer commented Sep 12, 2016

Error:

default_color = struct.unpack("hhhhHhhhhhh", csbi.raw)[4]
TypeError: Struct() argument 1 must be string, not unicode

Solution:
writers.py / line 770

    default_color = struct.unpack(b'hhhhHhhhhhh', csbi.raw)[4]
@heuer heuer added this to the 0.1.8 milestone Sep 12, 2016
@heuer heuer closed this as completed in f3fe0c3 Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant