When using IronPython I make a URL request to get an XML (with python-requests), in the VisualStudio's console I get the following error:
failed to parse CPython sys.version: '2.7.3 ()'
What does this mean? How can i fix it?
This is the Python code that causes the problem:
def __xml_retrieve(self, query_string):
""" Handles MB speed limits """
attempt = 0
while attempt <= self.max_attempts:
attempt += 1
# raises connectionerror; still not managed
try:
r = requests.get(query_string)
except Exception as exc:
print exc.message
if r.status_code == 503:
time.sleep(self.speed_limit_pause)
elif r.status_code == 200:
return r.content
return
The problem born when I call request.get(query_string). This is the requests library: http://docs.python-requests.org/en/latest/.