John Weiner
2018-09-16 19:36:09 UTC
Dear meep users, maintainers and developers,
Today I was experimenting with the materials_library.py which can be found in the /examples subdirectory, installed via the conda package. As a first step I tried to run one of the examples that uses the library, refl-quartz.py.
The first two lines of this script are:
import meep as mp
from meep.materials import fused_quartz
which, according to the docs, should work. When I run the script, however, I get an error message,
Traceback (most recent call last):
File "refl-quartz.py", line 2, in <module>
from meep.materials import fused_quartz
ModuleNotFoundError: No module named âmeep.materialsâ
I tried using a few other âhome-madeâ scripts with the same result. Apparently the module cannot be found or I am using the wrong syntax.
The python version of meep is installed in the miniconda3/ directory, following the instructions by Chris Hogan, and the mp environment is activated. Everything else works as it should, and I have run several of the other tutorials (refl-angular.py, bent_waveguide.py) without any problems. The problem therefore seems to be confined to the meep.materials module.
I would greatly appreciate any suggestion that might relieve my perplexity.
Best regards,
John
Today I was experimenting with the materials_library.py which can be found in the /examples subdirectory, installed via the conda package. As a first step I tried to run one of the examples that uses the library, refl-quartz.py.
The first two lines of this script are:
import meep as mp
from meep.materials import fused_quartz
which, according to the docs, should work. When I run the script, however, I get an error message,
Traceback (most recent call last):
File "refl-quartz.py", line 2, in <module>
from meep.materials import fused_quartz
ModuleNotFoundError: No module named âmeep.materialsâ
I tried using a few other âhome-madeâ scripts with the same result. Apparently the module cannot be found or I am using the wrong syntax.
The python version of meep is installed in the miniconda3/ directory, following the instructions by Chris Hogan, and the mp environment is activated. Everything else works as it should, and I have run several of the other tutorials (refl-angular.py, bent_waveguide.py) without any problems. The problem therefore seems to be confined to the meep.materials module.
I would greatly appreciate any suggestion that might relieve my perplexity.
Best regards,
John