Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python import problems with image2gif

Tags:

I know I have all packages installed (pip freeze) I am on a Windows 10 machine and am running python3.4 and am having weird dependency problems

test.py:

from images2gif import writeGif
from PIL import Image, ImageSequence
import os

file_names = ['output\donkey-1.png', 'output\donkey-2.png']

images = [Image.open(fn) for fn in file_names]

size = (600,350)
for im in images:
    im.thumbnail(size, Image.ANTIALIAS)

filename = "test.gif"
writeGif(filename, images, duration=0.5, subRectangles=False)

running test.py gives the following errors, could not find this error anywhere else on the web

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    from images2gif import writeGif
  File "C:\Python34\lib\site-packages\images2gif\__init__.py", line 1, in <module>
    from images2gif import readGif as readGif
ImportError: cannot import name 'readGif'