Forum Discussion
BlurredVision_1
Nimbostratus
Jan 05, 2009PyControl driving me round the bend!!
All,
Disclaimer first - I am an iControl n00b. Total hours messing with iControl is ~8.
Status: ran through the pyControl setup doc but did the Mac OSX equivalents to get it up and run...
L4L7_53191
Nimbostratus
Jan 23, 2009Odd. It may be worth poking around a bit more to see if there's not a path issue. Could you print out your sys.path and compare it to your WSDL_CACHE dir?
Here's an example:
In: import sys
In: sys.path
Out:
['',
'/usr/bin',
'/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg',
'/usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg',
'/usr/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg',
'/usr/lib/python2.5/site-packages/pyControl-1.3.0_beta-py2.5.egg',
'/usr/lib/python2.5/site-packages/ZSI-2.1_a1-py2.5.egg',
'/usr/lib/python25.zip',
'/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/var/lib/python-support/python2.5',
'/usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg/IPython/Extensions']
In: import pycontrol.pyControl as pc
In: pc.WSDL_CACHE
Out: '/usr/lib/python2.5/site-packages/pyControl-1.3.0_beta-py2.5.egg/pycontrol/BIGIP_WSDL_CACHE_DIR/wsdl'
The WSDL_CACHE attribute should point to the pyControl egg file. This should help you identify what is going on. On my debian system I had fits with path issues across multiple apt-installed python versions, so keep an eye out for something like this as well.
By the way, this points out a bug that I'll need to fix, and this is a variant of another issue posted to the forums regarding needing elevated perms to write to this directory. It would be nice to be able to set this all up and point it at a $TMP directory on a particular system.
It should be possible to manually set this attribute but it's not behaving the way I expect when I do this. I'll try and fix this up and submit a new (and overdue) pyControl egg.
-Matt
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects