question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when PIL gif plugin missing

See original GitHub issue

Apparently 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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rm-hullcommented, Dec 8, 2016

Sure - will do that now - will go for v1.2.0

0reactions
thijstriemstracommented, Dec 9, 2016

Yep. Thx.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found