furti / FreeCAD-Lithophane

FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
MIT License
32 stars 8 forks source link

Saving does not work with Python 3 #24

Closed furti closed 6 years ago

furti commented 6 years ago

Describe the bug When saving a File with a lithophane Image we get "Bytes" object not serializeable. Problem ist, that in py3 the 'base64ImageOriginal' is a Bytes object and not a Unicode string. have to encode it.

To Reproduce Steps to reproduce the behavior:

  1. Create lithophane Image
  2. Save file
  3. See error

Expected behavior Saving should be possible with python 3