Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kivy/Pillow cannot read all GIF files #30

Open
intellign opened this issue Mar 24, 2019 · 0 comments
Open

Kivy/Pillow cannot read all GIF files #30

intellign opened this issue Mar 24, 2019 · 0 comments

Comments

@intellign
Copy link

All other image file types work but GIFs, even kivy.Loader.loading_image causes the app to crash when a gif file is used (ie. "image-loading.gif")

That wasn't really a problem until I noticed pil cannot process/read all gif files. I have tried os.environ['KIVY_IMAGE'] = 'sdl2, gif' before importing kivy but I get a unknown <gif> type, no loader found error.

Also sudo apt-get install libgif-dev didn't really help.
Buildozer requirements= Pillow, openssl, requests, urllib3, certifi

Any help will be appreciated, thank you!

Code ex:

AsyncImage:
    source: "giphy_s.gif"
    on_release: root.stop_gif()

Error:

03-24 17:58:10.791  3662  3940 I python  : [WARNING] [Image       ] Unable to load image </data/user/0/test.picapp/files/app/_python_bundle/site-packages/kivy/data/images/image-loading.gif>
03-24 17:58:10.791  3662  3940 I python  : [INFO   ] [Base        ] Leaving application in progress...
03-24 17:58:10.791  3662  3940 I python  :  Traceback (most recent call last):
03-24 17:58:10.791  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/app/main.py", line 9700, in <module>
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/app.py", line 855, in run
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/base.py", line 502, in runTouchApp
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/core/window/window_sdl2.py", line 730, in mainloop
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/core/window/window_sdl2.py", line 465, in _mainloop
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/base.py", line 340, in idle
03-24 17:58:10.801  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/base.py", line 325, in dispatch_input
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/base.py", line 291, in post_dispatch_input
03-24 17:58:10.811  3662  3940 I python  :    File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/uix/behaviors/button.py", line 179, in on_touch_up
03-24 17:58:10.811  3662  3940 I python  :    File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
03-24 17:58:10.811  3662  3940 I python  :    File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
03-24 17:58:10.811  3662  3940 I python  :    File "kivy/_event.pyx", line 1098, in kivy._event.EventObservers._dispatch
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/lang/builder.py", line 64, in custom_callback
03-24 17:58:10.811  5070  5433 I Finsky  : [375490] nlv.b(1): Triggered update for experiment package com.google.android.finsky.regular.
03-24 17:58:10.811  3662  3940 I python  :    File "<string>", line 1925, in <module>
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/app/main.py", line 9144, in open_emojis0
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/uix/behaviors/button.py", line 121, in __init__
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/uix/image.py", line 345, in __init__
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/uix/image.py", line 361, in _load_source
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/loader.py", line 474, in image
03-24 17:58:10.811  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/loader.py", line 184, in _get_loading_image
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/core/image/__init__.py", line 460, in load
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/core/image/__init__.py", line 223, in __init__
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/kivy/core/image/img_pil.py", line 102, in load
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/PIL/Image.py", line 2609, in open
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/PIL/Image.py", line 2599, in _open_core
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/PIL/ImageFile.py", line 102, in __init__
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/PIL/GifImagePlugin.py", line 88, in _open
03-24 17:58:10.821  3662  3940 I python  :    File "/home/kivy/Desktop/PicApp/.buildozer/android/platform/build/build/python-installs/picapp/PIL/GifImagePlugin.py", line 141, in _seek
03-24 17:58:10.821  3662  3940 I python  :  IOError: [Errno 22] Invalid argument
03-24 17:58:10.821  3662  3940 I python  : Python for android ended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant