Closed peterjwilson closed 4 years ago
Hi @peterjwilson
I think you did not compile the external solvers application. Just add:
CALL :add_app %KRATOS_APP_DIR%\ExternalSolversApplication;
Along with the others
That and a few other apps were already in my config to run the specific cosim test I wanted to
rem Set applications to compile
set KRATOS_APPLICATIONS=
CALL :add_app %KRATOS_APP_DIR%\ParticleMechanicsApplication;
CALL :add_app %KRATOS_APP_DIR%\StructuralMechanicsApplication;
CALL :add_app %KRATOS_APP_DIR%\CoSimulationApplication;
CALL :add_app %KRATOS_APP_DIR%\MappingApplication;
CALL :add_app %KRATOS_APP_DIR%\ExternalSolversApplication;
That's odd.
Could you open the KratosExternalSolvers.dll (the one inside libs) with this https://www.dependencywalker.com/ and tell me if there is some missing lib?
Hmmm, I don't seem to have that dll inside my libs...
Maybe my config is wrong? Here it is
Configure seems ok.
You do have the dll, is the one called "KratosExternalSolversApplication.cp38-win-amd64.pyd" (pyd are dll with the names changed, as they represent python module extensions)
Could yo open it with the dependency walker pls?
Ah thanks - there were a few errors, here is the image
Hi @peterjwilson thx for the dump. I do not see anything wrong. The circular dependencies are a glitch from the software and the other errors are normal.
To be honest I don't know what is the problem. The only unfamiliar thing I see is that it seems to be loading some miketext libs ?¿ which seems extrange to me as they should not be related... could you try to remove that from the path?
Also at this point I would try to:
Let me know if any of these works or it keeps giving problems...
Thanks for the help @roigcarlo . I tried those fixes (I understood the first as removing the minggw path and adding the deplibs to path and re-running config) but unfortunately they didn't work and I still get the same error.
This branch makes cosim use the eigen app instead of external solvers, which gets the test running for me (and "fixes" my immediate issue). But I'm happy to be your windows lab rat if you think this problem may affect general windows users and want to pursue fixing it :)
Hi, it's me again. As a matter of fact it's not just you... I have the same problem as @peterjwilson.
I am closing this as we moved to 8.0 and we are no longer support the old external solvers app. Still a mystery to my why the import error was happening.
Reopen if needed.
I'm trying to run a co-sim test but get the following error
I've gone through this, this and updated system paths for as per windows post compilation but still get the above error.
My system path settings are below, with the library folders
Any assistance would be really appreciated @roigcarlo (I'm on VS2019 16.4.5 here btw)