I'm getting this error and don't understand why! Any ideas anyone?
TypeError: 'str' object is not callable
Here is my code.
import math
from lib import *
from test import *
hostCal = (int((200 * 0.7) / 10))
Basically my requirement is I just want to convert the float value into integer. When I execute just .py file it works fine but when I imported .py file into Robot I getting the above error.
Either your lib
module or your test
module contains a binding of the name int
to a string value.
(Moral of the story: avoid from <module> import *
!)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.