View Issue Details

IDProjectCategoryView StatusLast Update
0003806PathBugpublic2019-02-04 17:30
Reportermlampert Assigned Tomlampert  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Target Version0.18 
Summary0003806: post processors not py3 compatible
DescriptionTrying to export the g-code of a job with FC using py3 results in the following error:
postprocessing...
done postprocessing.
Running the Python command 'Path_Post' failed:
Traceback (most recent call last):
  File "/home/markus/projects/FreeCAD/mlampert/build/Mod/Path/PathScripts/PathPost.py", line 260, in Activated
    (fail, rc) = self.exportObjectsWith(postlist, job)
  File "/home/markus/projects/FreeCAD/mlampert/build/Mod/Path/PathScripts/PathPost.py", line 192, in exportObjectsWith
    gcode = processor.export(objs, filename, postArgs)
  File "/home/markus/projects/FreeCAD/mlampert/build/Mod/Path/PathScripts/PathPostProcessor.py", line 103, in export
    return self.script.export(obj, filename, args)
  File "/home/markus/projects/FreeCAD/mlampert/build/Mod/Path/PathScripts//post/linuxcnc_post.py", line 235, in export
    gfile.write(final)

a bytes-like object is required, not 'str'
Steps To ReproduceCreate a Job with some operation(s) - export using any post processor.
Additional Informationhttps://stackoverflow.com/questions/33054527/python-3-5-typeerror-a-bytes-like-object-is-required-not-str-when-writing-t
TagsNo tags attached.
FreeCAD Information

Activities

Issue History

Date Modified Username Field Change
2019-01-27 21:48 mlampert New Issue
2019-01-27 21:48 mlampert Status new => assigned
2019-01-27 21:48 mlampert Assigned To => mlampert
2019-01-29 18:58 mlampert Note Added: 0012561
2019-02-04 17:30 mlampert Status assigned => closed
2019-02-04 17:30 mlampert Resolution open => fixed