Issue with uploading profile image, cover
  • Vote Up0Vote Down walterwalter
    Posts: 10Member
    Hello, I can't upload any picture on booktype.

    decoder zip not available
    Request Method:GET


    Django Version:1.3
    Exception Type:IOError
    Exception Value:
    decoder zip not available
    Exception Location:/usr/local/lib/python2.7/dist-packages/PIL/Image.py in _getdecoder, line 385
    Python Executable:/usr/bin/python
    Python Version:2.7.3
    Python Path:
    [ '/usr/local/lib/python2.7/dist-packages',
    '/usr/lib/python2.7',
    '/usr/lib/python2.7/plat-linux2',
    '/usr/lib/python2.7/lib-tk',
    '/usr/lib/python2.7/lib-old',
    '/usr/lib/python2.7/lib-dynload',
    '/usr/local/lib/python2.7/dist-packages/PIL',
    '/usr/lib/python2.7/dist-packages',
    '/usr/lib/python2.7/dist-packages/PIL',
    '/usr/lib/pymodules/python2.7']
    Post edited by walter at 2014-06-12 09:13:10
  • 3 Comments sorted by
  • I have the same error, I tried to unistall PIL and install pillow as the community said , but it doesn't work. 
    Any solution ? 

    My installation is on debian wheezy with fresh install of booktype.
  • I tried the following solution, and worked for me. 

    apt-get install zlib1g

    locate libz.so

    sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

    virtualenv --distribute mybooktype

    cd mybooktype

    source bin/activate

    pip uninstall PIL

    pip install PIL



     

  • Hi George!

    Yes, there are some differences in API between Pillow and PIL. Latest development version works with Pillow but 1.6 still requires PIL to work.

    Aco