Python code eol error?
Status: Open · Asked by Stuart on · 0 views
I am trying to create a dynamic webpage based on the results of a google sheets
basically it goes through the array (list) and creates a string of HTML from it.
it works fine in IDLE but in Pabbly it gives me this error: EOL while scanning string literal (, line 7)
Any ideas?

Hi @Stuart,
Could you please share the Workflow URL and the code in which you are encountering this error? Additionally, record a short video running this code on an online compiler so that we can investigate the difference in responses.
[TABLE]
[TR]
[TD] [IMG alt="Webhook.site - Test, process and transform emails and HTTP requests - Click Display Images to view thumbnail"]https://videolinks3.com/v/COC4sA/preview_with_play.gif[/IMG] [/TD]
[/TR]
[TR]
[TD] Watch Video (02:44) [/TD]
[/TR]
[/TABLE]![]()
Also it keeps replacing the code in the window with rendered HTML...
But it seems to work still

Please share the exact code here in the thread so that I can test it with the unrendered code.
url = ""
arr = [["Should we set it up so that acuity clients go through the whole calendly procedure?","",2],["1) Can you create a stripe account for yyy@yyy? there is no monthly charge www.google.com","",3],["2) Can you create a Twillio account for hfh@hfrh? there is no monthly charge ","",4],["3) I need a list of links you want on the sidebar (like the Strategy session notes)","",5]]
for x in arr:
y = str(x[2])
url = url + "
" + x[0] + "
Submit"
print(url)
I tried running this code in an online compiler and got this error.
https://drive.google.com/file/d/1IGn7sxBiEb8ZmEVKzYnT8Vuzo6FtSLPL/view?usp=sharing
Sorry the indentation got lost in the copying it should be like this:
url = ""
arr = [["Should we set it up so that acuity clients go through the whole calendly procedure?","",2],["1) Can you create a stripe account for yyy@yyy? there is no monthly charge www.google.com","",3],["2) Can you create a Twillio account for hfh@hfrh? there is no monthly charge ","",4],["3) I need a list of links you want on the sidebar (like the Strategy session notes)","",5]]
for x in arr:
y = str(x[2])
url = url + "
" + x[0] + "
Submit"
print(url)
here is a video showing it working, and producing functional HTML code
[TABLE]
[TR]
[TD] [IMG alt="(1) Webhook.site - Test, process and transform emails and HTTP requests - Click Display Images to view thumbnail"]https://videolinks2.com/v/yvTbne/preview_with_play.gif[/IMG] [/TD]
[/TR]
[TR]
[TD] Watch Video [/TD]
[/TR]
[/TABLE]![]()
Please allow us some time to look into this concern. We will get back to you shortly.