TypeError ( 'int' object is not callable )

Asked by William Wilkins on 2018-11-12

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2018-11-15
Last query:
2018-11-15
Last reply:
2018-11-12
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")

So it is an bug with the SikuliX IDE editor?

masuo (masuo-ohara) said : #3

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

Thanks masuo, that solved my question.