[Zope] popen2 problem with Zope 2.7.0 and Photo
Ausum Studio
ausum_studio at hotmail.com
Mon Feb 16 11:23:26 EST 2004
I tried to reproduce the error on my w2k box (with Zope 2.7.0 on a regular
installation of Python 2.3.3, not the bundled version.), but it didn't
happen. Guess that reduces the problem to Linux.
I sugest to place the offending line in a try statement, and see what
happens:
try:
imgin.write(origimg._IMdata())
except:
raise
HTH
Ausum
----- Original Message -----
From: "Troy Farrell" <troy at entheossoft.com>
To: <zope at zope.org>
Sent: Monday, February 16, 2004 10:53 AM
Subject: [Zope] popen2 problem with Zope 2.7.0 and Photo
> Greetings Zopistas.
> Since I've upgraded from 2.6.2 to 2.7.0, the following product code causes
> zope to hang:
>
> elif engine == 'ImageMagick': # Use ImageMagick
> if sys.platform == 'win32':
> from win32pipe import popen2
> imgin, imgout = popen2('convert -quality %s -geometry %sx%s - -'
> % (quality, width, height), 'b')
> else:
> print "Started popen2\n"
> from popen2 import popen2
> imgout, imgin = popen2('convert -quality %s -geometry %sx%s - -'
> % (quality, width, height))
> print "Writing to stdin"
> imgin.write(origimg._IMdata())
> print "Finished writing to stdin\n"
> imgin.close()
> newimg.write(imgout.read())
> imgout.close()
>
> When I run zope in debug mode, I see "Started popen2" and the "Writing to
> stdin", but the process never gets to "Finished writing to stdin."
> Furthermore, zope will no longer respond to requests until I restart it.
> I already verified that origimg._IMdata() doesn't hang. I am using Photo
> 1.2.3 from http://zope.org/Members/rbickers/Photo/ with ImageMagick on
> Linux 2.2.20.
>
> Any hints?
>
> Thanks.
> Troy
>
> _______________________________________________
> Zope maillist - Zope at 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 )
>
More information about the Zope
mailing list