Skip to content

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

Description

@StopkaKris

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions