Ricecooker Sample :MagickWand shared library not found

I tried running https://raw.githubusercontent.com/learningequality/ricecooker/master/examples/sample_program.py as follows:

$python ./sample_program.py -v --token=<mytoken> --reset
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/wand/api.py”, line 180, in
libraries = load_library()
File “/usr/lib/python3.6/site-packages/wand/api.py”, line 135, in load_library
raise IOError('cannot find library; tried paths: ’ + repr(tried_paths))
OSError: cannot find library; tried paths:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “./sample_program.py”, line 9, in
from ricecooker.chefs import SushiChef
File “/usr/lib/python3.6/site-packages/ricecooker/chefs.py”, line 7, in
from .classes.nodes import ChannelNode
File “/usr/lib/python3.6/site-packages/ricecooker/classes/nodes.py”, line 8, in
from ricecooker.classes.files import NodeFile
File “/usr/lib/python3.6/site-packages/ricecooker/classes/files.py”, line 18, in
from pressurecooker.images import create_tiled_image
File “/usr/lib/python3.6/site-packages/pressurecooker/images.py”, line 11, in
from wand.image import Image as pdfImage # Must also have imagemagick and ghostscript installed
File “/usr/lib/python3.6/site-packages/wand/image.py”, line 20, in
from .api import MagickPixelPacket, libc, libmagick, library
File “/usr/lib/python3.6/site-packages/wand/api.py”, line 206, in
'Try to install:\n ’ + msg)
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
Installation — Wand 0.7.0

[me@linux ricecooker]$ pacman -Ss imagemagick
extra/imagemagick 7.0.7.21-1 [installed]
An image viewing/manipulation program
$ sudo pip install Wand
[sudo] password for me:
Requirement already satisfied: Wand in /usr/lib/python3.6/site-packages

Hi @nobicycle,

Sorry for not following up earlier. If you haven’t resolved the issue yet, could you please try to install ImageMagick version 6 instead of version 7? Thank you!

reference: https://stackoverflow.com/a/37011522