When I run the code at the following link from the command line (ie. "python example.py") I get the exception "suds.transport.TransportError: HTTP Error 401: basic auth failed"
What makes this so bizarre is that if I set up this same BIGIP instance in the interpreter, it works just fine. So I am unable to run this from a script. What is making this happen? How do I solve this?
I am running Python 2.7.3 as the interpreter. Is there a way to tell which version of python is running scripts? I had a simple script that was simply "import sys; print sys.version_info" and when that was run using "python version.py" it said the version was 2.7.3 as well.
The interpreter may be running a different version of urllib2, but that's another thing that I don't know how to check. I will return with the answer for that.
urllib2 is version 2.7 in both cases. what else could be causing this?