Hi everyone,
I need help with how to get rid of indentation error that comes in script files for no reason.
I know that there should be no identation error but I get it. It does not go away very easily.
Here is a screenshot-

I have to try really hard sometimes to get rid of this.
It feels like it is a bug.
Any suggestion on getting rid of this issue permanently?
Thanks & regards,
Ajay Kumar Gupta
We can't tell without seeing the previous lines. If that's inside a function at the root level of the script and isn't nested under some other expression, then it is indented one too far.
1 Like
You are either indented to the wrong "level", or are using tabs and spaces interchangeably, which you can not do in Python. Post the whole scripts and we can help.
3 Likes
Right click in the editor space -> appearance -> whitespace. This should allow you to determine if you have mixed spaces and tabs. Also make sure you aren't missing any colons or brackets.
5 Likes
can you give us the actual scripts?
Yes, it is a bug in your code (which we are still waiting for). Please see Wiki - how to post code on this forum.
1 Like