I'm trying out IxNetwork with python and robotframework, but ran into some trouble.
failed: AttributeError: 'NoneType' object has no attribute 'log_to_console'
Traceback (most recent call last):
File "<...>/IxNetwork/RestApi/Python/Modules/IxNetRestApi.py", line 195, in __init__
self.logInfo('Connecting to API server: linux')
File "<...>/IxNetwork/RestApi/Python/Modules/IxNetRestApi.py", line 767, in logInfo
self.robotStdout.log_to_console(msg)
Further investigation showed that in IxNetwork/RestApi/Python/Modules/IxNetRestApi.py (commit 12ff5df) attribute self.logInfo is referenced on line 195 and is assigned a value on line 230.
Moving the if statement (line 228: if self.robotFrameworkStdout:) up, fixed it for me.
A diff of the file I modified and the master: logInfo.txt
I'm trying out IxNetwork with python and robotframework, but ran into some trouble.
Further investigation showed that in
IxNetwork/RestApi/Python/Modules/IxNetRestApi.py
(commit 12ff5df) attributeself.logInfo
is referenced on line 195 and is assigned a value on line 230.Moving the if statement (line 228: if self.robotFrameworkStdout:) up, fixed it for me. A diff of the file I modified and the master: logInfo.txt