Python Forum
TabError: - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: TabError: (/thread-7918.html)



TabError: - grbibb - Jan-29-2018

I'm getting an error relate to the line print('outcomeGroupList:',outcomeGroupList)

The error says TabError: inconsistent use of tabs and spaces in indentation

#set the root group id
rootOutcomeGroup = canvas.getRootOutcomeGroup(domain, token, apiType)
#print('rootOutcomeGroup:',rootOutcomeGroup)
#create a full list of outcome groups in account
outcomeGroupList = canvas.getOutcome_groups(domain, token, apiType)
#create a full list of outcomes in account
outcomeList = canvas.getOutcomes(domain, token, apiType)
print('outcomeGroupList:',outcomeGroupList)
#find outcomeID if created
foundOutcome = canvas.findOutcomeID(outcome['title'], outcomeList)
#print(outcomeGroupList)


RE: TabError: - metulburr - Feb-01-2018

Quote:
Error:
The error says TabError: inconsistent use of tabs and spaces in indentation
This means you mixed tabs and space somewhere in your code


RE: TabError: - Truman - Mar-21-2018

I use space all the time and still receive this error. When I rewrite the line receive it again. How do you deal with this problem?
It completely blocks my coding.