Closed MaximGi closed 2 months ago
Can you please try this with a plain simple python (not via JetBrains)? It seems to me that JetBrains uses its own wired import method (not sure)? What I prefer on Windows is WinPython and this is the only way I have tested this so far.
What you can try too is in your script tell python where to look for the *.dll with:
os.add_dll_directory(r'C:\opt\openEMS')
OK, I found a way to keep working with Pycharm + virtual env.
It is possible to use this workaround :
What you can try too is in your script tell python where to look for the *.dll with:
os.add_dll_directory(r'C:\opt\openEMS')
Or, just add C:\opt\openEMS or whatever the directory is as as source directory in the pycharm project.
In a more general way, do you think it is possible to package all of this into a Pypi namespace so openEMS can be installed directly with pip ? I'm only suggesting, not demanding because I'm not competent enough to do it.
Following instructions at link :
setx OPENEMS_INSTALL_PATH C:\opt\openEMS
pip install .\CSXCAD-0.6.3-cp311-cp311-win_amd64.whl
'openEMS-0.0.36-cp311-cp311-win_amd64.whl'The following exceptions are raised while trying to import either of both CSXCAD and OpenEMS Modules :
Open EMS traceback
CSXCAD traceback