We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics Error when running a topology optimization on a cluster (Linux) Reply To: Error when running a topology optimization on a cluster (Linux)

samupekkaojanen
Subscriber

We installed Lumerical v241 on the cluster. I am actually now running into the following error when running lumtest.py on the cluster with the new version:

Traceback (most recent call last):
  File "/home/ojanen4/lumtest.py", line 12, in
    fdtd = lumapi.FDTD()
  File "/home/opt/Lumerical/v241/api/python/lumapi.py", line 1541, in __init__
    super(FDTD, self).__init__('fdtd', filename, key, hide, serverArgs, remoteArgs, **kwargs)
  File "/home/opt/Lumerical/v241/api/python/lumapi.py", line 1196, in __init__
    handle = self.__open__(iapi, product, key, hide, serverArgs, remoteArgs)
  File "/home/opt/Lumerical/v241/api/python/lumapi.py", line 1415, in __open__
    raise LumApiError(error)
lumapi.LumApiError: 'Exception [::appOpened]: Session not found'

This occurs at line "fdtd = lumapi.FDTD()". This worked fine in the older version. What could be causing this?