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

Add "b" to specify bytes at line 82 of stlRW.py #1

Open
StopkaKris opened this issue Nov 22, 2021 · 0 comments
Open

Add "b" to specify bytes at line 82 of stlRW.py #1

StopkaKris opened this issue Nov 22, 2021 · 0 comments

Comments

@StopkaKris
Copy link

Hey,

Thanks for writing this code, it is very useful! I ran into one bug using the code on line 82 of stlRW.py. The error I got was:

error: char format requires a bytes object of length 1

This can be fixed with the following change to that line of code (add 'b' to specify bytes):

for i in range(0, 80): fout.write(pack("<c", b" "))

Thanks again!

Best regards,
Kris

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