I have a function with a layer that has an import inside of it.
When ran, I get the error "No module named xhtml2pdf"
I have 2 layers that I could import, one for the PDF script and one for the xhtml2pdf module, I don't really want to import both
My import of the function in the layer is:
from PDF import convert_html_to_pdf
Inside the layer I have the import
from xhtml2pdf import pisa
Do I need to add the package into my main function using a layer or can I "nest" layers inside of each other?
Or, is there a way to install the package inside the same layer as my PDF.py?