FDTD Solutions, Python API and floating license


#1

Hello,

We have been toying with the Python API for FDTD Solutions for some time now and while it works fine with a node-locked license (trial version) we are not sure on how to make it works with our floating license model.

If we try to open directly FDTD…

lumapi.open('fdtd')

… We get the following traceback:

Traceback (most recent call last):

  File "<ipython-input-6-d4416a60cab5>", line 1, in <module>
    lumapi.open('fdtd')

  File "C:\Program Files\Lumerical\FDTD\api\python\lumapi.py", line 190, in open
    raise LumApiError("Failed to launch application")

Our guess is that it is related to the variable url in the function open (lines 161-162 in lumapy.pi). In the case if trying to open FDTD Solutions we get:

elif product == "fdtd":
    url = b"fdtd://localhost?server=true"

So maybe it consider a localhost license or something.

Is there a way to specify an ip address for the floating license server or call the FlexNet manager to access a license?

Our configuration:

Windows 10 Pro 1803
FDTD Solutions 8.20.1731
Python 3.6.1 64bits
FlexNet License Manager 11.14.0


#2

To use the Python API together with FDTD Solutions, both of the licenses should be on the same FlexNet license manager. You cannot use different license models. ie. Floating license for FDTD Solutions and Node trial license for the API.

You will need a floating license for the Automation API and add this to your existing pool of site licenses.

Hope this answers your questions.
-Lito


#3

I thought as the Python API was included with the download of the latest version of FDTD it was fine to use it.
Thank you very much, I will double check if we have such product and come back to you if necessary.

Have a nice day,
Arthur


#4

The Python API module is included in all our products but the Automation API License is required to use the Python API. The trial you requested might have been for an application package which includes the automation api license.

Please contact your account manager for more information on licensing options for the Automation API.

Hope this clarifies the License requirement when using the API.
-Lito