Arcadianlee/Photonics-FDTD-DRL

ModuleNotFoundError: No module named 'lumapi'

Ydeh22 opened this issue · 1 comments

Hi Everyone,
I am trying to reproduce your result and not sure how get "lumapi" module. Any help will be appreciated.
ModuleNotFoundError: No module named 'lumapi'

(base) myhome@myhome:~/Downloads/IE_690_REINFORCEMENT_LEARNING/Photonics-FDTD-DRL-main$ /Photonics-FDTD-DRL-main$ python optim_PhC_dqn.py| tee run.log
Traceback (most recent call last):
File "optim_PhC_dqn.py", line 37, in
env = gym.make('Fdtd-v0').unwrapped
File "/home/myhome/anaconda3/lib/python3.8/site-packages/gym/envs/registration.py", line 581, in make
env_creator = load(spec_.entry_point)
File "/home/myhome/anaconda3/lib/python3.8/site-packages/gym/envs/registration.py", line 61, in load
mod = importlib.import_module(mod_name)
File "/home/myhome/anaconda3/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/myhome/Downloads/IE_690_REINFORCEMENT_LEARNING/Photonics-FDTD-DRL-main/envs/init.py", line 1, in
from envs.fdtd_env import FdtdEnv
File "/home/myhome/Downloads/IE_690_REINFORCEMENT_LEARNING/Photonics-FDTD-DRL-main/envs/fdtd_env.py", line 6, in
from src import FdtdRl
File "/home/myhome/Downloads/IE_690_REINFORCEMENT_LEARNING/Photonics-FDTD-DRL-main/src/init.py", line 2, in
from src.FdtdRl import FdtdRl
File "/home/myhome/Downloads/IE_690_REINFORCEMENT_LEARNING/Photonics-FDTD-DRL-main/src/FdtdRl.py", line 12, in
import lumapi as lp
ModuleNotFoundError: No module named 'lumapi'

Hi,
You are gonna have to install Lumerical FDTD for this to work.
Best of luck,
Rick