python - TypeError: 'str' object is not callable error -



python - TypeError: 'str' object is not callable error -

i'm getting error , don't understand why! ideas anyone?

typeerror: 'str' object not callable

here code.

import math lib import * test import * hostcal = (int((200 * 0.7) / 10))

basically requirement want convert float value integer. when execute .py file works fine when imported .py file robot getting above error.

either lib module or test module contains binding of name int string value.

(moral of story: avoid from <module> import *!)

python robot

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -