TypeError ( 'int' object is not callable )

Asked by William Wilkins

My problem code is as follows:

tloop=0
num=input("number?")
num=int(num)
while tloop <= num:
..........

My error is that it say "[error] TypeError ( 'int' object is not callable )"
Also if I remove num=int(num) then it loops forever.
The I am surely inputting a number, I have tried many.

Ideas?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

Such an error occurs when overwriting the function "int" in processing before this.
Once overwritten, you can not restore it, so you need to restart the SikuliX IDE editor.

[example:]
int = 0
int("123")

Revision history for this message
William Wilkins (enduserstudios) said :
#2

So it is an bug with the SikuliX IDE editor?

Revision history for this message
masuo (masuo-ohara) said :
#3

It is a specification of Python interpreter, not SikuliX bug.

Revision history for this message
William Wilkins (enduserstudios) said :
#4

Thanks masuo, that solved my question.