Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TabError:
#1
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)
Reply
#2
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
Recommended Tutorials:
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP TabError: inconsistent use of tabs and spaces in indentation blackjesus24 2 3,559 Jan-30-2020, 10:25 AM
Last Post: blackjesus24

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020