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

[proposed bug] Can't find openEMS binary if path has spaces on Windows #93

Closed
Nistp opened this issue Aug 23, 2022 · 1 comment
Closed

Comments

@Nistp
Copy link

Nistp commented Aug 23, 2022

Hi,

First of all, thank you so much for your awesome work!

I'm encountering this issue where on my Windows PC, I'm getting the following error when running the helical antenna tutorial:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
args = "Helix_Ant.xml"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
error: openEMS binary exited with error-code 1
error: called from
    invoke_openEMS at line 50 column 2
    RunOpenEMS at line 181 column 9
    Helical_Antenna at line 128 column 5

From the error message and the fact that I've had success running the tutorial on a different PC, in which I've put the openEMS folder in C (C:/openEMS), I'll say that the problem is the path--more specifically, it's the space in "Program Files" where I put the openEMS folder on this PC.

I've traced it back to matlab/private/invoke_openEMS.m line 34:
openEMS_bin = searchBinary('openEMS.exe', [dir filesep '..' filesep '..' filesep]);

I'd like to fix it myself, but I can't find the "searchBinary" function's definition anywhere in this repository or in Matlab's documentation. Could you please point me to where I can find more information about it?

Thank you!

@thliebig
Copy link
Owner

Well you will not find it in openEMS. It's in CSXCAD which openEMS builds/depends on. So I guess this can be closed here?
Happy fixing ;)

@Nistp Nistp closed this as completed Aug 24, 2022
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

2 participants