Forum Discussion

Anthony_Pineda's avatar
Anthony_Pineda
Icon for Nimbostratus rankNimbostratus
Jul 19, 2016

F5 iControl SDK Error

I recently added the F5 SDK module on Python 2.7.9. When I run the following, I get the error below as well

from f5.bigip import ManagementRoot
mgmt = ManagementRoot("10.xx.xx.xx", "admin", "password")

Here is the error:

Traceback (most recent call last): File "getpools_rest.py", line 9, in mgmt = ManagementRoot("10.xx.xx.xx", "admin", "password") File "/usr/local/lib/python2.7/dist-packages/f5_sdk-1.0.2-py2.7.egg/f5/bigip/__init__.py", line 48, in init iCRS = iControlRESTSession(username, password, timeout=timeout) File "build/bdist.linux-i686/egg/icontrol/session.py", line 265, in init AttributeError: 'module' object has no attribute 'packages'

Where do I find the packages modules

1 Reply

  • I finally found the issue. All the *nix forums would suggest upgrading the requests module for python but I am running the server that houses Python 2.7.9 behind a proxy that does not allow the call to PyPi via https so I manually downloaded request-2.5.0 module from PyPi and installed it. The errors were gone after that. All in all, in order to manually install the ncessary F5 SDK you have to install these three:

     

    • f5-sdk-1.0.2
    • f5-icontrol-rest-1.0.7
    • request-2.5.0