Closed MarAlder closed 3 years ago
Did you try running the script via activate python3_cpacs && python run.py
?
This is the approach I use for conda-env enabled tool integrations, but it might fail for script integration.
You could try to replace python.exe
with a batch script that sets all required paths prior to running python.exe
with the given arguments.
The entire approach, however, is not very portable: it will run only on your specific setup.
You might alternatively activate the conda environment before starting rce.exe
. This way python.exe
will automatically refer to the correct environment's interpreter and you can forgo all other path setup. This would be somewhat more portable.
Or don't use external libraries in rce scripts at all...
Thanks @ArneBachmannDLR, the solution via batch script is working fine for me.
Dear RCE-Team,
I have a question to the python configuration in RCE. I would like to define my own sampling via Python script which provides a matrix:
with:
I configured python (using a Conda environment) via:
Usually these scripts are running without problems. However, when I load a module which uses
Numpy
(such asSALib
in the above example) the following error occurs:In my Conda environment itself, Numpy loads without problems and the example above runs without errors. I have observed a similar error when I have included my own python tool. Here I could work around the error by specifying the Python path via the execution command:
In the configuration file under
thirdPartyIntegration
only thebinaryPath
can be specified, right?Thanks for your help!