In lambda console, my lambda structure now looks like this: myLambdaFunctionĪnd when i try from wand.image import Image I now get the error message : Unable to import module 'lambda_function': MagickWand shared library not found.\nYou probably had not installed ImageMagick library despite the fact that I have deployed the imagemagick/ghostscript zip as a layer for this lambda and added it. scp the package to my computer, and zip the package along with my lambda function as per AWS zip deployment instructions.pip install -target=package wand, pip install -target=package magickwand.Here are the steps I took to package Wand: Tar zcvf ~/imagemagick.tgz Thanks for the response! I had not added it properly, I repackaged and deployed a zip now and I'm getting a different error, not sure what I did wrong. Sudo yum -y install libpng-devel libjpeg-devel libtiff-devel gcc I am using Anaconda and I get the following error: C:Anaconda2libsite-packagesmatplotlibanimation.py:784: UserWarning: MovieWriter imagemagick unavailable warnings. # This works with both ImageMagick v6.x and v7.x I downloaded ImageMagick file for Windows 64bits ImageMagick-7.0.4-4-Q16-圆4-dll.exe ( Link) and I installed it. # process.env = process.env + '/imagemagick/bin:' + process.env # In a NodeJS runtime, you would add something like the following to the top of # to ensure these newer binaries are used. ![]() ![]() # You need to prepend PATH with the folder containing these binaries in your Lambda function # Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |