PyOptiSLang: RuntimeError: Cannot get optiSLang server port.
Daniel Arnold
Member, Employee Posts: 9
✭✭✭
I get the following error when instantiating a Optislang class with PyOptiSLang: RuntimeError: Cannot get optiSLang server port.
Tagged:
0
Answers
-
Sometimes the optiSLang server is responding to slow. Please try to increase the initial timeout with
ini_timeout
argument. Further debug logging can be added withloglevel='Debug'
:from ansys.optislang.core import Optislang osl = Optislang( ini_timeout = 120, loglevel = 'Debug' ) print(osl) osl.dispose()
0