Hi Fredrik,<br><br>>>> import _imaging; print _imaging.__file__<br>/usr/local/lib/python2.7/site-packages/PIL/_imaging.so<br><br><br>Here's a dump of the complete error in case it helps;<br><br>[root@acroplia-1 audioprocessing]# /usr/local/bin/python wav2png.py M1F1-Alaw-AFsp.wav<br>
processing file M1F1-Alaw-AFsp.wav:<br> 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% Traceback (most recent call last):<br> File "wav2png.py", line 45, in <module><br> create_wave_images(*args)<br>
File "/root/a/freesound/freesound/utils/audioprocessing/processing.py", line 479, in create_wave_images<br> waveform.save(output_filename_w)<br> File "/root/a/freesound/freesound/utils/audioprocessing/processing.py", line 391, in save<br>
self.image.save(filename)<br> File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 1439, in save<br> save_handler(self, fp, filename)<br> File "/usr/local/lib/python2.7/site-packages/PIL/PngImagePlugin.py", line 572, in _save<br>
ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])<br> File "/usr/local/lib/python2.7/site-packages/PIL/ImageFile.py", line 481, in _save<br> e = Image._getencoder(im.mode, e, a, im.encoderconfig)<br>
File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 401, in _getencoder<br> raise IOError("encoder %s not available" % encoder_name)<br>IOError: encoder zip not available<br><br clear="all">
Thank you,<br> Dhruv<br>+1-510-931-6347<br><br>
<br><br><div class="gmail_quote">On 2 August 2010 19:35, Fredrik Lundh <span dir="ltr"><<a href="mailto:fredrik@pythonware.com">fredrik@pythonware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/8/2 Dhruv Majumdar <<a href="mailto:dhruv@nettrackers.net">dhruv@nettrackers.net</a>>:<br>
<div class="im"><br>
> Im new to Python and have been struggling with this error during tests:<br>
><br>
> IOError: encoder zip not available<br>
><br>
> I have python 2.7 with zlib, jpeg and freetype installed on the server. When<br>
> building PIL it shows support for all three above. However i notice at<br>
> ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])<br>
><br>
> I get the abovementioned error.<br>
<br>
</div>Make sure your Python script is actually picking up the version you<br>
built. To see which version it's using, add this to your script:<br>
<br>
import _imaging; print _imaging.__file__<br>
<font color="#888888"><br>
</F><br>
</font></blockquote></div><br>