aitatanit / gmes

GMES (GIST Maxwell's Equations Solver) is a free Python package for the electromagnetic simulation using FDTD method.Forked from Kyungwon Chun <kwchun@gist.ac.kr> https://sourceforge.net/p/gmes/code-git/ci/master/tree/
GNU General Public License v3.0
22 stars 9 forks source link

ImportError: No module named pw_material #1

Open uid89626 opened 7 years ago

uid89626 commented 7 years ago

import gmes No module named psyco. Execution speed might be slow. Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/gmes/init.py", line 51, in from fdtd import * File "/usr/local/lib/python2.7/dist-packages/gmes/fdtd.py", line 25, in from file_io import Probe File "/usr/local/lib/python2.7/dist-packages/gmes/file_io.py", line 23, in from pw_material import MaterialElectricReal, MaterialElectricCmplx ImportError: No module named pw_material

yu-ting-py commented 5 years ago

After I use cmd to install your package, it apprears running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\gmes copying gmes\fdtd.py -> build\lib.win-amd64-3.6\gmes copying gmes\file_io.py -> build\lib.win-amd64-3.6\gmes copying gmes\geometry.py -> build\lib.win-amd64-3.6\gmes copying gmes\pw_source.py -> build\lib.win-amd64-3.6\gmes copying gmes\show.py -> build\lib.win-amd64-3.6\gmes copying gmes\source.py -> build\lib.win-amd64-3.6\gmes copying gmes__init__.py -> build\lib.win-amd64-3.6\gmes running build_ext building 'gmes._pw_material' extension swigging src\pw_material.i to src\pw_material_wrap.cpp swig.exe -python -c++ -outdir gmes -o src\pw_material_wrap.cpp src\pw_material.i error: command 'swig.exe' failed: No such file or directory


Could anyone tell me how to fix it?

Thanks in advance.