Forum Discussion
hooleylist
Jun 14, 2011Cirrostratus
Hi,
I don't have much experience with pycontrol, but I guess that's because you don't have a path for python set or you don't have the pycontrol.pycontrol file saved in the library directory. I think the path to python is expected from your environment variables:
!/bin/env python
On an LTM, this shows:
/bin/env python
Python 2.4.3 (1, Oct 18 2010, 11:25:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
If that's not working on the host you're running the script from, try setting the path explicitly in the script. You could also try copying the pycontrol.pycontrol file to your current directory.
Here are a few related links:
http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7
http://devcentral.f5.com/Default.aspx?tabid=53&aft=86059
http://stackoverflow.com/questions/1756721/what-is-causing-importerror-no-module-named-pkg-resources-after-upgrade-of-pytho
Aaron