Skip to content

How do I solve the "Java Package is not callable" error on Spark OCR? #341

Discussion options

You must be logged in to vote

Can you try to start with following script?

from sparkocr import start
JSL_OCR_SECRET = ""
OCR_VERSION = "
"
ocr_jar_path = f"https://pypi.johnsnowlabs.com/{JSL_OCR_SECRET}/jars/spark-ocr-assembly-{OCR_VERSION}.jar"
spark = start(secret=JSL_OCR_SECRET, jar_path=ocr_jar_path)
spark

Replies: 1 comment

Comment options

JustHeroo
Aug 31, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by JustHeroo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant