How to install Spark OCR in a Docker container. #352
-
I'm trying to install in a Docker container to make things more portable. I'm running into an error that looks like a license issue, I got my regenerated license keys and I'm still seeing an error. An error occurred while calling z:com.johnsnowlabs.nlp.pretrained.InternalsPythonResourceDownloader.downloadModel. [... after running this code to connect:] Some relevant lines of the Dockerfile here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have now fixed it thanks to your prompting and have a working prototype. I wasn't creating the full license as an environment variable under the correct name (I didn't realise its significance). Need this for the local installation of Spark NLP Healthcare libraries:ENV SPARK_NLP_SECRET 3.2.1- Need to export this for the Spark environmentENV SPARK_NLP_LICENSE |
Beta Was this translation helpful? Give feedback.
I have now fixed it thanks to your prompting and have a working prototype. I wasn't creating the full license as an environment variable under the correct name (I didn't realise its significance).
For reference, the relevant lines of the Dockerfile that I needed to write were as follows:
Need this for the local installation of Spark NLP Healthcare libraries:
ENV SPARK_NLP_SECRET 3.2.1-
Need to export this for the Spark environment
ENV SPARK_NLP_LICENSE