[Errno 30] Read-only file system: '/home/sbx_user1051' #899
Replies: 4 comments
-
Had the same problem. Apparently related to EasyOCR library. Following worked for me if executed before docling import.
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, @exotikh3. This worked for me. It would be nice if this gets added to FAQ section in the docs. |
Beta Was this translation helpful? Give feedback.
-
Did you try pre-fetching the models? https://docling-project.github.io/docling/usage/#model-prefetching-and-offline-usage |
Beta Was this translation helpful? Give feedback.
-
@dolfim-ibm Yes, I have built a docker image that prefetches the models and outputs them to /var/task/assets/models(aws lambda). In my pipeline options , i have provided the artifacts path. Still i was getting this error. It got after adding the above mention env variables. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to convert a PDF to Markdown using the following code in an AWS Lambda function. However, I am encountering the error:
🚨 [Errno 30] Read-only file system: '/home/sbx_user1051'
Here’s my code snippet:
`pipeline_options = PdfPipelineOptions(do_table_structure=True)
doc_converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
)
result = doc_converter.convert(Path(fileName))
`
It seems like the function is trying to write to a restricted directory. How can I resolve this issue while keeping the Lambda function functional? Any guidance would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions