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()
しかし、それは Pyramid で実行した場合にのみ発生します。これを単純な python .py 内で実行すると、正常に動作します。何か案は?
例はここで見ることができます