Closed cmadson closed 9 months ago
Oh and thank you for writing this!
Not sure when happened, while helping another user on here with their logged issue (non standard ascii characters in gcode) I installed python 3.9.18 and pyenv to reset my env. Now your script runs great with both his original file including the weird characters as well as the cleaned up version.
I am receiving this error when exporting out of PrusaSlicer as a post processing script or when running standalone.
Post-processing script /usr/bin/python3 /Users/cm/scripts/prusa_slicer_post_processing_script.py on file /var/folders/mb/6fmyt45x6fd0ntcxhh9yg7880000gp/T/.94609.gcode.pp failed. Error code: 1 Output: Traceback (most recent call last): File "/Users/cm/scripts/prusa_slicer_post_processing_script.py", line 1197, in main(gCodeFileStream,path2GCode, skipInput) File "/Users/cm/scripts/prusa_slicer_post_processing_script.py", line 109, in main input("Can not run script, gcode unmodified. Press enter to close.") EOFError: EOF when reading a line
// system info macOS 14.2.1 -rwxrwxrwx@ 1 cm staff 64019 Jan 27 10:33 prusa_slicer_post_processing_script.py
Python 3.11.7 (main, Jan 1 2024, 01:39:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin