Forum Discussion
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
- Anthony_Pineda
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com