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

Check for fmuexport binary #188

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Check for fmuexport binary #188

merged 1 commit into from
Jul 4, 2024

Conversation

jschueller
Copy link
Contributor

I also stumbled on #129, one possibility to address this is to raise at the import
Maybe we could also just send a warning message, maybe if there are legitimate uses of fmuexport that dont require the binary but I dont know

Closes #129

@jschueller
Copy link
Contributor Author

jschueller commented Mar 14, 2024

hello @markaren, what do you think about this one ?
/cc @HenningScheufler @BenjaminRodenberg

@markaren
Copy link
Member

Sorry for not reacting to this PR. It is likely OK. I might find a need to use this library again in the near future and will look into adding this then.

@jschueller
Copy link
Contributor Author

ping @markaren

@markaren markaren merged commit d619218 into NTNU-IHB:master Jul 4, 2024
@jschueller
Copy link
Contributor Author

thanks!

@jschueller jschueller deleted the check branch July 4, 2024 13:46
@Jorgelmh
Copy link
Collaborator

Jorgelmh commented Sep 26, 2024

I think this is not a good idea, this code breaks the functionality when you run the Python code from inside the FMU as the binaries are not placed at "/resources/binaries/{win64 or linux64}/pythonfmu.so". Instead the binaries inside the FMU are just placed at /binaries. This 'has_binary' function was made to be used by the builder to check if the pythonfmu installation had the correct binaries, running this code from the FMU won't work as expected and causes the FMU to fail when instantiating

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

Successfully merging this pull request may close these issues.

Raise error or warning, if pythonfmu/resources/binaries/linux64/libpythonfmu-export.so is missing
3 participants