Photo & Photofolder: broken pipe (err32)
Having similar problems to Tim Willems http://mail.zope.org/pipermail/zope/2003-August/140257.html Freshly installed Zope, Photo, ImageMagick whenever it tries to display a manipulated image e.g. http://192.168.1.127:8080/photos/Yosemite.jpg?display=thumbnail gives: Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 32] Broken pipe This is happening on 2 different systems; both FreeBSD installed from Ports collections. Both have ImageMagick working correctly for other apps (e.g. gdimage, and from the command line) but not from Zope. Calling the unmanipulated image e.g. http://192.168.1.127:8080/photos/Yosemite.jpg works OK Problem with permissions? Jim Whiteside
A full traceback would be helpful. And what are the security settings? I assume you have a PhotoFolder which contains the images. On Sun, 28 Sep 2003, Jim Whiteside wrote:
Having similar problems to Tim Willems http://mail.zope.org/pipermail/zope/2003-August/140257.html
Freshly installed Zope, Photo, ImageMagick whenever it tries to display a manipulated image e.g. http://192.168.1.127:8080/photos/Yosemite.jpg?display=thumbnail gives:
Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 32] Broken pipe
This is happening on 2 different systems; both FreeBSD installed from Ports collections. Both have ImageMagick working correctly for other apps (e.g. gdimage, and from the command line) but not from Zope.
Calling the unmanipulated image e.g. http://192.168.1.127:8080/photos/Yosemite.jpg works OK
Problem with permissions?
Jim Whiteside
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Jim Whiteside wrote (jim@jaydublu.com) on 9/28/03 12:33 PM]
Error Type: IOError Error Value: [Errno 32] Broken pipe
a commandline start (as opposed to a restart from the control panel) seems to be a temp fix. <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669
On 09/28/2003 1:33 PM, Jim Whiteside wrote:
Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 32] Broken pipe
Sounds like Photo can't find the 'convert' command in the path, or the 'convert' first in the path is not from ImageMagick. If this is the case, you can hack Photo.py _resize() to specify the path to 'convert', or just make sure it's first in the path. -- Ron Bickers Logic Etc, Inc.
So I change the line in Photo.py to read: imgout, imgin = popen2('/usr/local/bin/convert -quality %s -geometry %sx%s --' Restart Zope, and it works! OK, so where is Zope's path set so I can configure it is a less bodged fashion? Many thanks, Jim Whiteside -----Original Message----- From: Ron Bickers [mailto:rbickers-expires-1065459587.016691@logicetc.com] Sent: 29 September 2003 18:01 To: Jim Whiteside Cc: zope@zope.org Subject: Re: [Zope] Photo & Photofolder: broken pipe (err32) On 09/28/2003 1:33 PM, Jim Whiteside wrote:
Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 32] Broken pipe
Sounds like Photo can't find the 'convert' command in the path, or the 'convert' first in the path is not from ImageMagick. If this is the case, you can hack Photo.py _resize() to specify the path to 'convert', or just make sure it's first in the path. -- Ron Bickers Logic Etc, Inc.
On 09/29/2003 2:38 PM, Jim Whiteside wrote:
OK, so where is Zope's path set so I can configure it is a less bodged fashion?
You just need to set the system path so that the user running Zope has it in its path first. /usr/local/bin is so common that I have it in my system-wide path. -- Ron Bickers Logic Etc, Inc.
participants (5)
-
Dennis Allison -
george donnelly -
Jim Whiteside -
Ron Bickers -
Ron Bickers