2 comments

[ 2.3 ms ] story [ 15.0 ms ] thread
is there any explanation :D?
Randomly came across this while doing some art. I Ctrl-C'ed on this line:

Saved to kernel49/kernel49_67.png Saved to kernel49/kernel49_68.png Saved to kernel49/kernel49_69.png ^CTraceback (most recent call last): File "/Users/caleb/miniforge3/envs/ml/lib/python3.8/site-packages/PIL/ImageFile.py", line 504, in _save fh = fp.fileno() AttributeError: '_idat' object has no attribute 'fileno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "kernel49.py", line 135, in <module> run_simulation(300) File "kernel49.py", line 122, in run_simulation draw_simulation(state, i) File "kernel49.py", line 39, in draw_simulation im.save(img_path) File "/Users/caleb/miniforge3/envs/ml/lib/python3.8/site-packages/PIL/Image.py", line 2240, in save save_handler(self, fp, filename) File "/Users/caleb/miniforge3/envs/ml/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 1348, in _save ImageFile._save(im, _idat(fp, chunk), [("zip", (0, 0) + im.size, 0, rawmode)]) File "/Users/caleb/miniforge3/envs/ml/lib/python3.8/site-packages/PIL/ImageFile.py", line 518, in _save l, s, d = e.encode(bufsize) KeyboardInterrupt