Fail building galleries under Debian

68 views
Skip to first unread message

Diego Iastrubni

unread,
May 20, 2013, 2:19:59 PM5/20/13
to nikola-...@googlegroups.com
Hi all,

I am trying to build my site and when I add some galleries I get this error:

$ nikola build
Scanning posts.done!
.  render_galleries:output/galleries/TheHairMan/shokolad_1.thumbnail.jpg
########################################
TaskError - taskid:render_galleries:output/galleries/TheHairMan/shokolad_1.thumbnail.jpg
PythonAction Error
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/doit/action.py", line 326, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/nikola/plugins/task_render_galleries.py", line 312, in resize_image
    im.save(dst)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "/usr/lib/python2.7/dist-packages/PIL/JpegImagePlugin.py", line 471, in _save
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 495, in _save
    for e, b, o, a in tile:
ValueError: Not a valid numbers of quantization tables. Should be between 2 and 4.

[('jpeg', (0, 0, 180, 115), 0, 'RGB')]

Can anyone help?

Diego Iastrubni

unread,
May 20, 2013, 2:31:58 PM5/20/13
to nikola-...@googlegroups.com
On Monday, May 20, 2013 9:19:59 PM UTC+3, Diego Iastrubni wrote:
Hi all,

I am trying to build my site and when I add some galleries I get this error:

BTW,

Using nikola-5.4.4 build from the tarball

Icaro Perseo

unread,
May 20, 2013, 2:40:36 PM5/20/13
to nikola-...@googlegroups.com
seems to be having trouble with pil/pillow :-/

The most likely missing the following dependencies to make pillow/pil properly installed:

sudo apt-get install libjpeg-dev libpng12-dev libgif-dev libxml2-dev libxslt1-dev

It might be necessary to reinstall pil/pillow to compile successfully

Good Luck!!!

Roberto Alsina

unread,
May 20, 2013, 2:43:37 PM5/20/13
to nikola-...@googlegroups.com
IIRC, This is a PIL bug, try getting Pillow :-P

Diego Iastrubni

unread,
May 21, 2013, 4:23:10 AM5/21/13
to nikola-...@googlegroups.com

On Monday, May 20, 2013 9:40:36 PM UTC+3, Icaro Perseo wrote:
seems to be having trouble with pil/pillow :-/

The most likely missing the following dependencies to make pillow/pil properly installed:

sudo apt-get install libjpeg-dev libpng12-dev libgif-dev libxml2-dev libxslt1-dev

I am not at home, but I am pretty sure I do have all those packages installed.
 

It might be necessary to reinstall pil/pillow to compile successfully

OK, how do I re-install pillow (as Roberto says, PIL is buggy now)?

Diego Iastrubni

unread,
May 21, 2013, 2:59:40 PM5/21/13
to nikola-...@googlegroups.com
It might be necessary to reinstall pil/pillow to compile successfully

OK, how do I re-install pillow (as Roberto says, PIL is buggy now)?

sudo apt-get remove python-images
pip install Pillow
cd $NIKOLA_SRC
./setup.py clean
./setup.py build
./setup.py install

Now its working, and I am making my site. Thanks!
Reply all
Reply to author
Forward
0 new messages