I have a Python lambda in AWS that has as dependency tabulas, which requires Java 8+. Is there any way to includes Java in my package? I’m using Serverless framework to package my function and dependencies.
{
"errorMessage": "`java` command is not found from this Python process.Please ensure Java is installed and PATH is set for `java`",
"errorType": "JavaNotFoundError",
"stackTrace": [
" File \"/var/task/handler.py\", line 18, in parse\n data = get_data(tmp_file_path)\n",
" File \"/var/task/handler.py\", line 31, in get_data\n convert_into(file_path, file, output_format='csv', pages='all')\n",
" File \"/var/task/tabula/io.py\", line 562, in convert_into\n _run(java_options, kwargs, path)\n",
" File \"/var/task/tabula/io.py\", line 91, in _run\n raise JavaNotFoundError(JAVA_NOT_FOUND_ERROR)\n"
]
}