I can already see that you have not made the correction.
I will paste the solution from the mentioned thread.
Make sure the ‘except’ is on the same column as the try. That means, it should be exactly below it, instead of being shifted to the right.
As it is mentioned in the error message itself
File “/home/ubuntu/conf.py”, line 1
That means line 1 of your conf.py has the error.
sudo nanoSID = 'You can find.....'
You are supposed to put the SID token from your Twilio dashboard.
And the variable should be defined like below method,
SID = 'Your SID from Twilio Dashboard'
Regarding the SID, Twilio has been taught as well in the training. You are suggested to complete all the training modules serially and thouroughly.
Let me know if you have any other queries.
@Amrita_dey You have to learn to debug using the error message shown in the message itself. It’s told that error occurred while executing line 1 of conf.py file
And it seems like you have not mentioned The Twilio SID in the SID variable, you have to assign the value there which you can find from the Twilio dashboard of yours and you have just commented it as
SID = ‘Your SID from Twilio Dashboard’
[ image removed ]
[ image removed ]
the SID is similar ,but still its showing error…
I don’t see the SID variable in the 2nd image, it scrolled down. Open the conf.py file and send a screenshot of the file. (with all the variables visible)
[ image removed from post ]
As you can see on the very first line,
So, remove ‘sudo nano’ and only put ‘SID’ over there.
so after typing “SID”, shall i type the the no. of SID token,
or “you can find…”?
Looks like there is a space in your file name in between. You have written conf .py
while it is supposed to be conf
Please check your SID and token, you may have made a typing mistake there.
Anyways, this query was already taken up in the forum -
For any new queries from this or any other project, it is suggested to search it up in the forum first. It helps in self debugging the errors. Also, you won’t have to wait for the support team to guide you through the process or debug the common errors.
For any query that is new, and is not available in the forum, you can post it in the same thread or create a new one. But please make sure to check for the solution (in the forum) before doing so.