baseclient.py has stopped working.. KeyError: 'ns0'
Hi. I’m having issues running the following code, which has been working flawlessly until recently:
from betdaq.apiclient import APIClient api = APIClient('username', 'password') sport_ids = api.marketdata.get_sports()
error:
Traceback (most recent call last): File "C:\Users\UK\AppData\Local\Programs\Python\Python37\lib\site-packages\zeep\xsd\schema.py", line 172, in get_ns_prefix return self._prefix_map_custom[prefix] KeyError: 'ns0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\UK\AppData\Local\Programs\Python\Python37\lib\site-packages\zeep\xsd\schema.py", line 174, in get_ns_prefix return self._prefix_map_auto[prefix] KeyError: 'ns0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\UK\Desktop\Betdaq test.py", line 2, in
Thanks a lot for any kind of attention. Best regards Jacob
changing the url of the WSDL file in baseclient.py to: 'https://api.betdaq.com/v2.0/API.wsdl' solved my issue.