electronut / pp

Code for book Python Playground by Mahesh Venkitachalam (No Starch Press, USA)
564 stars 500 forks source link

IOError: [Errno 32] Broken pipe #19

Open NXDD opened 5 years ago

NXDD commented 5 years ago

When I press "s", the console shows:

saving drawing to spiro-08Oct2018-133122.eps/png Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1541, in call return self.func(*args) File "C:\Python27\lib\lib-tk\turtle.py", line 710, in eventfun fun() File "C:/pythonlearning/PythonPlayground/eg_2 kleidoscope/spiro_original.py", line 192, in saveDrawing img.save(fileName + '.png', 'png') File "C:\Python27\lib\site-packages\PIL\Image.py", line 1406, in save self.load() File "C:\Python27\lib\site-packages\PIL\EpsImagePlugin.py", line 283, in load self.im = Ghostscript(self.tile, self.size, self.fp) File "C:\Python27\lib\site-packages\PIL\EpsImagePlugin.py", line 72, in Ghostscript gs.write(s)

I opened the folder, finding the picture was not be saved as png.