iCR Python Module for iControl REST
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Hey Pete, I decided to check out iCR once more and I used the "as simple as" example you posted above but I kept getting this error: "TypeError: 'module' object is not callable".
I did some digging on the error and per Stack Exchange, the error is caused because the iCR module you import and the iCR class you instantiate are the same name.
To instantiate the iCR class successfully, I updated your sample code to
bigip = iCR.iCR("172.24.9.132","admin","admin")
That is the only way I can run the code in Python 2.7.14 without error.