Traceback (most recent call last):

 "examples/search.py", line 115, in <module>
main(sys.argv[1:])

 "examples/search.py", line 72, in main
service = client.connect(**kwargs_splunk)

 "examples/../splunklib/client.py", line 321, in connect
s.login()

 "examples/../splunklib/binding.py", line 852, in login
session = XML(body).findtext("./sessionKey")

 "/usr/lib/python2.6/xml/etree/ElementTree.py", line 964, in XML
return parser.close()

 "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1254, in close
self._parser.Parse("", 1) # end of dataxml.parsers.expat.ExpatError: no element found: line 1, column 0
`Traceback (most recent call last):


 "/home/simon/PycharmProjects/targeting/venv/lib/python3.5/site-packages/hyperopt/pyll/base.py", line 868, in rec_eval

int(switch_i)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'dict'
