keithrozario / Klayers

Python Packages as AWS Lambda Layers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] PyMuPDF AWS-Lambda import error

gv-sai-kumar opened this issue · comments

even after loading the layer
arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p38-PyMUPDF:6
still not able to import fitz, lambda run time Python 3.9, x86_64

Unable to import module 'lambda_function': cannot import name '_fitz' from partially initialized module 'fitz' (most likely due to a circular import) (/opt/python/fitz/init.py)

Can you please let me know how to run this without errors.

can you try using python3.8 instead.