c# - IronPython - Error in URL request -
when using ironpython make url request xml (with python-requests), in visualstudio's console following error:
failed parse cpython sys.version: '2.7.3 ()'
what mean? how can fix it?
this python code causes 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 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 call request.get(query_string). requests library: http://docs.python-requests.org/en/latest/.
Comments
Post a Comment