Error when PIL gif plugin missing
See original GitHub issueApparently I have a PIL installed that doesn’t have the GIF plugin available. This produces a traceback for the gifanim example on Ubuntu with python 3.5.2:
$ python examples/clock.py -d gifanim --max-frames 20
Error in atexit._run_exitfuncs:d GIF
Traceback (most recent call last):
File "/home/foo/.virtualenvs/bar/lib/python3.5/site-packages/oled/emulator.py", line 133, in write_animation
append_images=self._images[1:])
File "/home/foo/.virtualenvs/bar/lib/python3.5/site-packages/PIL/Image.py", line 1683, in save
format = EXTENSION[ext]
KeyError: ''
It should print a warning with explanation instead?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Animated gif displays frames incorrectly · Issue #1525 - GitHub
I am using PIL 5.2.0 in the simplest loop to show every frame. But it throws this error: Traceback (most recent call last):...
Read more >Python Pillow transparent gif isn't working - Stack Overflow
Here is the code I use (adapted from the code found in issue 4644) in case it's helpful. You can just call the...
Read more >gif · PyPI
gif 22.11.0. pip install gif. Copy PIP instructions. Latest version. Released: Nov 16, 2022.
Read more >Image Processing With the Python Pillow Library - Real Python
In this step-by-step tutorial, you'll learn how to use the Python Pillow library to deal with images and perform image processing.
Read more >Changelog — Python 3.11.1 documentation
Patch by Victor Stinner. gh-99581: Fixed a bug that was causing a buffer overflow if the tokenizer copies a line missing the newline...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure - will do that now - will go for v1.2.0
Yep. Thx.