def _init_services(self):
logger = _get_logger(self.debug)<EOL>opened = self._session.openService('<STR_LIT>')<EOL>ev = self._session.nextEvent()<EOL>ev_name = _EVENT_DICT[ev.eventType()]<EOL>logger.info('<STR_LIT>'.format(ev_name))<EOL>for msg in ev:<EOL><INDENT>logger.info('<STR_LIT>'.format(msg))<EOL><DEDENT>if ev.eventType() != blpapi.Event.SERVICE_STATUS:<EOL><INDENT>raise RuntimeError('<STR_LIT>'<EOL>'<STR_LIT>'.format(ev_name))<EOL><DEDENT>if not opened:<EOL><INDENT>logger.warning('<STR_LIT>')<EOL>raise ConnectionError('<STR_LIT>')<EOL><DEDENT>self.refDataService = self._session.getService('<STR_LIT>')<EOL>opened = self._session.openService('<STR_LIT>')<EOL>ev = self._session.nextEvent()<EOL>ev_name = _EVENT_DICT[ev.eventType()]<EOL>logger.info('<STR_LIT>'.format(ev_name))<EOL>for msg in ev:<EOL><INDENT>logger.info('<STR_LIT>'.format(msg))<EOL><DEDENT>if ev.eventType() != blpapi.Event.SERVICE_STATUS:<EOL><INDENT>raise RuntimeError('<STR_LIT>'<EOL>'<STR_LIT>'.format(ev_name))<EOL><DEDENT>if not opened:<EOL><INDENT>logger.warning('<STR_LIT>')<EOL>raise ConnectionError('<STR_LIT>')<EOL><DEDENT>self.exrService = self._session.getService('<STR_LIT>')<EOL>return self<EOL>
Initialize blpapi.Session services