r-lambda-workflow icon indicating copy to clipboard operation
r-lambda-workflow copied to clipboard

Empty packages.zip for R package layer with pre-build AMI

Open tomaskissik opened this issue 5 years ago • 2 comments

Hi, thank you for great guide for using R with lambda. I was tring to setup my own workflow and instal R package layer with pre-build AMI but after ec2 instance is terminated I'm left of with packages.zip directory that contains only empty library folder. No errors messages are shown in the cli. Could you please help me if you see that there is something I'm missing?

the code I'm runnig in macOs terminal:

./r_package_layer.py -k ~/.ssh/mykey.pem -m ami-0a1147e8e86aa6175 -p "glue, stringr"

Thank you

tomaskissik avatar Dec 10 '19 09:12 tomaskissik

Hi, The most probable cause of the problem is missing system dependency (my guess is that stringr dependency - stringi is the reason for problems). Unfortunately, the current version of r-lambda-workflow still misses a proper error messaging feature, but probably I'll be able to to start working on that soon. Best

jakubnowicki avatar Dec 10 '19 12:12 jakubnowicki

Hi @tomaskissik I have added some logging tools to the workflow. If you still have problems, please change branch to develop and run the script with the flag -d. It should produce a more useful output. Best

jakubnowicki avatar Dec 12 '19 10:12 jakubnowicki