Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on Windows 11 #203

Open
jones-jp opened this issue Apr 24, 2024 · 4 comments
Open

Installation on Windows 11 #203

jones-jp opened this issue Apr 24, 2024 · 4 comments

Comments

@jones-jp
Copy link

Hi,

I followed the instructions here: https://docs.openems.de/install.html (Basically just extracting the downloaded zip folder into C drive).

I did the next steps give here: https://docs.openems.de/python/install.html#windows
git clone --recursive https://github.com/thliebig/openEMS-Project.git
cd openEMS-Project/CSXCAD/python

So far so good...

But when attempting to install with:
python setup.py build_ext -IC:\opt\openEMS\include -LC:\opt\openEMS

I get the following errors (copying here only the last few lines, but the same error is repeated 100 times):
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47892): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47898): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47898): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2

Please help with fixing this issue.

Regards,
Jones

@LubomirJagos42
Copy link

this is not solution, let's say workaround for now to exclude inductance extension which you will not use for python interface for now:

# downgrade openEMS to version without new stuff lumped inductance so it's possible to compile
cd ~/Downloads/openEMS-Project/openEMS
git reset --hard 5f36e7f3a2367123f00999491a069aed50c6f244

@thliebig
Copy link
Owner

The zip should come with pre-build python packages. Have a look in the python folder and the readme on how to just install these packages...

@jones-jp
Copy link
Author

jones-jp commented Apr 30, 2024

Hi LubomirJagos,
Thanks for your response! I was trying to install in Windows in my work PC, I was looking for an open source alternative to tools like Hyperlynx. For now, I have given up my efforts to get this working in Windows, but in my Linux system at home now I am trying to get this work.

Hi thliebig,
Thanks for your suggestion! I had tried that too, but it seems like it doesn't work on the latest version of Python. I was trying on my work PC and every time I try to install something, I'll need to get admin rights from the IT department and I gave up trying this. But I'm trying to get this work on my personal Linux system.

Really happy to see your replies. Sorry I took a while to get back to you.

Jones

@PatrykSikora1
Copy link

Hello,

I am facing similar issue.
I installed openEMS on windows 10 with no problems on my university PC.
Since my home pc is much faster I decided to install in on my home machine (windows 11).

My process of installing went as follows:

  1. download zip file of openEMS

  2. Installing wheel files :
    pip install CSXCAD-0.6.2-cp310-cp310-win_amd64.whl
    pip install openEMS-0.0.33-cp310-cp310-win_amd64.whl

  3. run Bent_Patch_Antenna.py I failed to run the script with following error:
    from CSXCAD.CSXCAD import ContinuousStructure
    ImportError: DLL load failed while importing CSXCAD: The specified module could not be found.

  4. I tried same on python 3.11 with same error

  5. I tried to compile the source code, however I got same error as @jones-jp

Do you have any solution beside excluding inductance extension?

Best regards
Patryk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants