Open AliHaider0343 opened 2 months ago
@AliHaider0343 we'll need the full stack trace to make any sense of this, please post :)
Also, make sure you're using the latest version.
meet same error.
Stack information display the block
@contextmanager def save(image): try: with NamedTemporaryFile(prefix='tess_', delete=False) as f: if isinstance(image, str): yield f.name, realpath(normpath(normcase(image))) return image, extension = prepare(image) input_file_name = f'{f.name}_input{extsep}{extension}' image.save(input_file_name, format=image.format) yield f.name, input_file_name finally: cleanup(f.name)
path is unstructured_pytesseract.pytesseract.save
the above line is giving error: local variable f referenced before assignment i had checked each and everything its not sorted can someone please refer it and share their opinion.