ArtifexSoftware / pdf2docx

Open source Python library for converting PDF to DOCX.
https://pdf2docx.readthedocs.io
GNU Affero General Public License v3.0
2.61k stars 378 forks source link

Lambda Runtime - Function not implemented #225

Open robin-garnham opened 1 year ago

robin-garnham commented 1 year ago

Thanks for making this library, it's a life saver.

I am getting this error message when attempting to use the Multi-Processing flag for the Python runtime: An exception occurred: [Errno 38] Function not implemented

I've done some research and looks like the approach to multi-threading isn't compatible with Lambda. https://github.com/dbt-labs/dbt-core/issues/2992

Just wondering if this is something you'd be open to changing? Lambda supports up to 6 CPU's and this process is very CPU bound, so supporting more CPU's is very advantageous.

dothinking commented 10 months ago

Sorry that it seems a challenge for me as I do not have an AWS Lambda environment to debug this specific issue. Much appreciated if you could contribute to it and submit a PR. Sorry for my late reply.