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.
Apache License 2.0
1.51k stars 234 forks source link

Permission denied #403

Closed nautilux2 closed 9 months ago

nautilux2 commented 1 year ago

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

chrismattmann commented 9 months ago

I think you need to ensure that you run the command java from your computer or reinstall it? Thanks.