TAGGED: lumerical
-
-
April 6, 2023 at 9:25 pm
Ariel Lee
SubscriberHi, I am using Lumerical installed on a computer cluster at a school and accessing Lumerical via a virtual desktop due to license related issue.
In this type of setting, I am not sure how to use Python API, especially lumopt. When I try to run a Python script from the script editor, it shows an error message like this:
"Python integration status: inactive
Executable: Executable gnome-terminal or mate-terminal is required to launch a Python interpreter, but was not found in PATH."
An article (https://optics.ansys.com/hc/en-us/articles/360050995394) says that I can directly run the examples by running the scripts from the script file editor in the CAD. However, I am not understanding what this means. Would you please give some advice on this problem?
Thank you!
-
April 11, 2023 at 7:54 am
Priscila Romagnoli
Ansys EmployeeHi Ariel,
Seems like your Python integration in Lumerical is inactive.
Please check if you are using the Python provided by Lumerical. Go to “Help” tab and “Python Integration Configuration”. The “Use Python provided by Lumerical” option should be checked. In case it is not, please check if Python is added in the Path environment variables in Windows.
-
April 12, 2023 at 2:48 am
Priscila Romagnoli
Ansys EmployeeAdditionally, if you are using Python in Linux from the Lumerical CAD/GUI, it requires you to have a Gnome or Mate terminal, and you can run directly from the terminal (without CAD/GUI). Please check it if you have it installed.
For more information to run Python API scrips please check: https://optics.ansys.com/hc/en-us/articles/5771091294739
-
April 17, 2023 at 8:40 pm
Ariel Lee
SubscriberThank you for the reply. I am using Python in Linux, and my environment already has xfce4 terminal. Is it possible to use this terminal instead?
Also, when I go to the “Help” tab and “Python Integration Configuration”, the Python integration status is inactive.
The “Use Python provided by Lumerical” option is checked, but the path directory shown on the tab does not exist. The path shown on the tab is: “PYTHONPATH=/n/sw/lumerical-2021-R2-2717-7bf43e7149_seas/api/python:/n/sw/lumerical-2021-R2-2717-7bf43e7149_seas/python-3.6.8rc1/bin:/n/sw/lumerical-2021-R2-2717-7bf43e7149_seas/python-3.6.8rc1/lib/site-packages”
but actually, the directory under “lib” folder is as shown below.
How should I fix this to make the python integration status “active”?
Thank you in advance!
-
April 19, 2023 at 4:22 am
Priscila Romagnoli
Ansys EmployeeHi Ariel,
It is required to have a Gnome or Mate terminal for using Python with Lumerical in Linux, please install it.
In addition, you can check the path in which Python and Lumerical are using, as described here: https://optics.ansys.com/hc/en-us/articles/5771091294739
And if the path is not correct, please add it in the environment variables in Linux, as described here: https://optics.ansys.com/hc/en-us/articles/7595785040403
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- “Import optical generation” or “delta generation rate”?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Diverging Simulations
- Finding your Ansys (or Lumerical) account number
- Ansys Insight: Why my simulation result is different from published paper or experiment?
- Is there a Lumerical script command to output the Simulation and Memory requirements?
-
5386
-
3371
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.