thliebig / openEMS-Project

openEMS is a free and open electromagnetic field solver using the FDTD method.
356 stars 65 forks source link

ImportError: DLL load failed while importing CSXCAD #40

Closed milen-prg closed 1 year ago

milen-prg commented 1 year ago

Windows 10 Pro 64 bit, Python 3.11 64 bit, I successful install the packages:

openEMS_x64_v0.0.35-99-gecf0c16_msvc pip install CSXCAD-0.6.2-cp311-cp311-win_amd64.whl pip install openEMS-0.0.33-cp311-cp311-win_amd64.whl

BUT, when try any of the examples in: openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials

it returns ERRRR:

C:\Users\mlap\Downloads\openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials>Simple_Patch_Antenna.py Traceback (most recent call last): File "C:\Users\mlap\Downloads\openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials\Simple_Patch_Antenna.py", line 12, in from CSXCAD import ContinuousStructure File "C:\Users\mlap\AppData\Local\Programs\Python\Python311\Lib\site-packages\CSXCAD__init__.py", line 19, in from CSXCAD.CSXCAD import ContinuousStructure ImportError: DLL load failed while importing CSXCAD: The specified module could not be found.

thliebig commented 1 year ago

Did you follow the Windows install instruction? Especially to set the environment variable?

milen-prg commented 1 year ago

I apologize, indeed I did not set the environment variable. Additionally was extra requirement to the h5py package. After that all works! Thank, you!

thliebig commented 1 year ago

I'm happy to hear that this fixed it for you. Have fun using openEMS ;)