python-esppy
python-esppy copied to clipboard
Error Connecting to ESPpy from local machine
Hello,
I am trying to connect to ESPPY from my local machine. I'm running windows 10. I have already installed and imported esppy. My colleague is able to run the following code to establish a connection, but I cannot:
esp = esppy.ESP("[hostname]:[port]")
I get the following error:
~\AppData\Local\Continuum\anaconda3\lib\site-packages\esppy\connection.py in init(self, hostname, port, username, password, protocol, ca_bundle, authinfo, auth_obj) 360 warnings.warn('Kerberos authentication attempted, but requests_kerberos ' 361 'module is not installed ', RuntimeWarning) --> 362 raise ESPError(res.reason) 363 364 RESTHelpers.init(self, session=session)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\esppy\connection.py in _populate_algorithms(self) 430 else: 431 out = project.Project(proj, **kwargs) --> 432 out.session = self.session 433 return out 434
~\AppData\Local\Continuum\anaconda3\lib\site-packages\esppy\connection.py in get_algorithms(self, atype, properties, type, reference) 1452 Type of the algorithm: train, calculate, or score 1453 properties : bool, optional -> 1454 Should algorithm properties be returned? 1455 type : string, optional 1456 Set to 'astore' if astore information is desired
~\AppData\Local\Continuum\anaconda3\lib\site-packages\esppy\algorithm.py in from_xml(cls, data, session) 103 default = attrs.get('default', None) 104 if default is not None: --> 105 if dtype.startswith('int'): 106 params[name]['default'] = int(default) 107 elif dtype == 'double':
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Please advise. Thanks!