Closed BeHerz closed 6 months ago
Please provide the corresponding code you are using. What OS are you using and where are your language data files located at?
Device is iOS. The code where the Phyton is running is a Phyton Box in ChatGPT. I tried on WIN as well with the same problem.
Dont know where its located, it is requested by ChatGPT code window
I do not think that there is much we can do about this non-regular setup. You can try digging around in the system to determine more details about the OS and installed packages to determine the correct Tesseract data directory to pass as environment variable. Neverthless, I would recommend you to rather run the code on a proper local setup unless you are sure what you are doing and that this is the right approach.
will try to solve it via OpenAI Developer Community
I am experiencing a problem with the Tesseract OCR setup in a Python environment. Despite attempting to perform OCR on images using the pytesseract library, the process fails with an error related to loading the German language data files.
TesseractError: (1, 'Error opening data file /usr/share/tesseract-ocr/4.00/tessdata/deu.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the "tessdata" directory. Failed loading language 'deu'. Tesseract couldn't load any languages! Could not initialize tesseract.')
Environment: phyton generated by chatGPT