Hi All,
I am following through the tutorial to get up a running with the python BF API listed here (https://betfair-datascientists.githu...ythontutorial/). I have generated certificates following the methods described in this tutorial and have placed them (both .pem and .crt files) into the directory listed below as well as linked them to my BF account.
When I try to login non-interactively I get the following error.
--------------------------------------------------------------------------- APIError Traceback (most recent call last) <ipython-input-11-76672fb37c0d> in <module>() ----> 1 trading.login() C:\Users\...\Anaconda2\lib\site-packages\betfairlightweight\endpoints\login.pyc in __call__(self, session, lightweight) 28 :rtype: LoginResource 29 """ ---> 30 (response, elapsed_time) = self.request(self.url, session=session) 31 self.client.set_session_token(response.get('sessio nToken')) 32 return self.process_response(response, LoginResource, elapsed_time, lightweight) C:\Users\...\Anaconda2\lib\site-packages\betfairlightweight\endpoints\login.pyc in request(self, method, params, session) 40 raise APIError(None, exception='ConnectionError') 41 except Exception as e: ---> 42 raise APIError(None, exception=e) 43 elapsed_time = (datetime.datetime.utcnow() - date_time_sent).total_seconds() 44 APIError: None Params: None Exception: Certificate folder not found in /certs/ Note my code is as follows:
trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path)
trading.login()
and I have my directory set to:
certs_path = r'C:\certs'
For what it's worth, I have no problems logging in interactively, i.e. trading.login_interactive() works fine.
Any help understanding where I'm going wrong would be greatly appreciated!!
I am following through the tutorial to get up a running with the python BF API listed here (https://betfair-datascientists.githu...ythontutorial/). I have generated certificates following the methods described in this tutorial and have placed them (both .pem and .crt files) into the directory listed below as well as linked them to my BF account.
When I try to login non-interactively I get the following error.
--------------------------------------------------------------------------- APIError Traceback (most recent call last) <ipython-input-11-76672fb37c0d> in <module>() ----> 1 trading.login() C:\Users\...\Anaconda2\lib\site-packages\betfairlightweight\endpoints\login.pyc in __call__(self, session, lightweight) 28 :rtype: LoginResource 29 """ ---> 30 (response, elapsed_time) = self.request(self.url, session=session) 31 self.client.set_session_token(response.get('sessio nToken')) 32 return self.process_response(response, LoginResource, elapsed_time, lightweight) C:\Users\...\Anaconda2\lib\site-packages\betfairlightweight\endpoints\login.pyc in request(self, method, params, session) 40 raise APIError(None, exception='ConnectionError') 41 except Exception as e: ---> 42 raise APIError(None, exception=e) 43 elapsed_time = (datetime.datetime.utcnow() - date_time_sent).total_seconds() 44 APIError: None Params: None Exception: Certificate folder not found in /certs/ Note my code is as follows:
trading = betfairlightweight.APIClient(username=my_username, password=my_password,app_key=my_app_key,certs=cert s_path)
trading.login()
and I have my directory set to:
certs_path = r'C:\certs'
For what it's worth, I have no problems logging in interactively, i.e. trading.login_interactive() works fine.
Any help understanding where I'm going wrong would be greatly appreciated!!

