Hi there, I’m trying to create a custom PDF, but when I run it there’s an issue with the code. I followed along with the YouTube tutorial.
here’s a link to a screenshot of the message I got
Hi there, I’m trying to create a custom PDF, but when I run it there’s an issue with the code. I followed along with the YouTube tutorial.
here’s a link to a screenshot of the message I got
Thanks for sharing this error. @stephenasuncion and I will take a look at it.
Do you get the error consistently every time this way or has it just happened once or twice?
Certainly! I'd be happy to create a PDF of the scripts for you. I'll use the pdf_generator_copy function to generate this for you.Creating a PDF of the parenting scripts for you...
I apologize for the confusion. It seems there was an error in generating the PDF due to a syntax issue in the code. Let me explain the error and provide a
solution:
The error message indicates:
File "//app/action.py", line 18
parenting_script_html"""<!DOCTYPE html>
ΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑΛΑ
SyntaxError: invalid syntax
This error suggests that there's a problem with the syntax in the Python code that's trying to create the HTML content for the PDF. Specifically, it looks like there might be an issue with how the multi-line string is being defined.