0

I'm getting segmentation fault running the example in Wand 0.1.9:

from urllib2 import urlopen
from wand.image import Image

response = urlopen('https://stylesha.re/minhee/29998/images/100x100')
try:
    with Image(file=response) as img:
        print 'format =', img.format
        print 'size =', img.size
finally:
    response.close()

But it happens only when I run in Pyramid. when I just run this inside a simple python .py, it works fine. Any ideas?

The example can be seen here

oriharel
  • 10,418
  • 14
  • 48
  • 57
  • It could be because when you use a simple script, you use the python package installed on your system, and when you use Pyramid, you use the python package in your virtualenv, and this one is incompatible with the installation of ImageMagick on your system. – Antoine Leclair Jan 19 '12 at 13:37
  • it works also when I run the script in the virtualenv – oriharel Jan 19 '12 at 15:06
  • I’m the author of Wand library. Did your Pyramid web server die? – minhee Jul 08 '12 at 01:05
  • There is a known issue that ImageMagick crashes on Mac if it’s built with `--enable-openmp`. – minhee Oct 05 '12 at 12:17

0 Answers0