chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission denied

nautilux2 opened this issue · comments

Hi guys
I'm using java lambda layer (https://github.com/shelfio/java-lambda-layer) that uses tika to extract text (Python runtime 3.9, tika server standard 2.6) and got this error

os.environ['TIKA_JAVA'] = '/opt/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.lambda2.0.1.x86_64/jre/bin'

"errorMessage": "[Errno 13] Permission denied: '/opt/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.lambda2.0.1.x86_64/jre/bin'",
"errorType": "PermissionError",

How can I resolve this?
Thank