Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
while True: l,s,d (github.com/python-pillow)
2 points by calebm on Jan 19, 2022 | hide | past | favorite | 2 comments


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


is there any explanation :D?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: