Could not spawn; error code 8 with canitlever beam example (Windows 11) #92
|
Dear Community, I am currently exploring the use of Dakota and navigating through the screen casts, training materials, and exercises. I have successfully installed both the Dakota GUI and CLI, and when I enter "dakota -version" in the command window, it shows: “Dakota version 6.19 released Nov. 15 2023”. The first Rosenbrook example worked well for me( as shown in this video Introduction to Dakota: Running a Simple Example in Dakota (youtube.com)): However, I am facing challenges with the cantilever beam example (as seen in the training video “model characterization” at the 46 minute mark). `---------------------
|
Replies: 2 comments
|
Hi there, I just managed to solve the problem myself. There is a folder which contains updated examples for the training (e.g. using python3), including hints of what needs to be changed in order to perform the exercises in windows. Cheers |
|
On Windows, Dakota may not be able to execute a Linux C-shell script (e.g. driver.sh). This could result in the error message "Error: cannot open results file results.out.1 for evaluation 1" because driver.sh failed to run and results.out.1 was never created. A simple fix for this issue is to create a batch file driver.bat containing "bash driver.sh %1 %2" and use "analysis_driver = 'driver.bat'" in the Dakota input file. |
Hi there,
I just managed to solve the problem myself.
I have to use the examples provided here:
https://github.com/snl-dakota/dakota-examples/tree/master
There is a folder which contains updated examples for the training (e.g. using python3), including hints of what needs to be changed in order to perform the exercises in windows.
Everything works now.
Cheers