Closed Ajaru97 closed 2 weeks ago
I'm not sure what has gone wrong here, but let's take a close look at /home/ajaru/miniforge3/envs/weis-env/bin/turbsim
Can you execute that from the command line in WSL?
Hi Daniel,
Apologies, I'm not sure what you mean by this. Do I need to change my directory to this or execute the turbsim file? Please could you provide more instruction? Sorry again for my ignorance.
You shouldn't need to change directories. If you copy /home/ajaru/miniforge3/envs/weis-env/bin/turbsim
into your WSL command line and execute it by hitting enter, what happens?
This is essentially what WEIS is doing when it hits your error, so I'm hoping the WSL command line can give a better/different error message.
This is the error that is gives:
-bash: /home/ajaru/miniforge3/envs/weis-env/bin/turbsim: No such file or directory
This turbsim
exe should have been included when we installed the conda environment.
What happens when you do conda install -y openfast
?
It says that it is already installed:
# All requested packages already installed.
Hi Daniel,
Just to add to this, I get this error when I try to run the turbsim binary within the conda environment.
(weis-env) root@DTU-5CG4332LZQ:~/miniforge3/envs/weis-env/bin# ./turbsim
-bash: ./turbsim: cannot execute binary file: Exec format error
Hi,
A google search of that error seems to indicate that this message could arise if your WSL is 32-bit and you are trying to run a 64-bit executable. Or perhaps your conda installation was in 32-bit and your turbsim
executable is 64-bit.
I believe everything in conda is 64-bit, but don't quote me on that. WEIS should also be installable and runnable on native Windows, without WSL, if that is an option for you.
Best, Dan
Hi Daniel,
I have similar error as Andrew. I have checked my both WSL and conda installations, they are all in 64-bit.
Could it be that the openFAST installed in the conda environment via this command conda install -y openfast
is the Windows version of openFAST?
Best regards Fanzhong
Hi Fanzhong,
Can you share your openfast version using conda list | grep openfast
?
Best, Dan
Hi Daniel,
This is the openfast version:
openfast 3.5.3 h4226df5_0 conda-forge
BR
Fanzhong
That's definitely a linux version of openfast
: https://anaconda.org/conda-forge/openfast/files?page=3
For a sanity check: can you execute that openfast
executable? Or same error?
I believe this is an issue with WSL and perhaps conda. I recommend doing a web search of the issue with that context and try some solutions that have been found to work for other software. One thing I'm seeing is that it can be an issue with the WSL version. Do you know what version you're using? Are you able to upgrade to WSL 2? Are you able to compile and run OpenFAST by itself within WSL? Can you run other linux executables within WSL?
Sorry, the dev team doesn't use WSL (it's been banned by our IT), so this is a bit of a blind spot for us. Anything you find will be helpful to the community.
Hi Daniel, I can confirm that executing the openfast gives exactly the same error. You are right. It could the issue of WSL. We (Andrew and I) both are using WSL 1. I have not tried to compile and run openFAST within my WSL 1. I can run other Linux executables within my WSL 1, for example, HAWC2 linux version.
BR Fanzhong
Hi Both,
I have upgraded to WSL 2 and the examples are now able to run! Thank you for your help.
Just out of curiosity, what are the differences between WSL 1 and 2 that allowed them to run with WSL 2 but not with WSL1?
Hi,
I have attempted to install WEIS using the instructions provided but I am getting the following error when trying to run the examples.
Description
It seems that when I run the examples, there is an error within TurbSim within the Miniforge environment as I receive this error:
OSError: [Errno 8] Exec format error: '/home/ajaru/miniforge3/envs/weis-env/bin/turbsim'
Steps to reproduce issue
Current behavior
Examples such as 06_IEA-15-240-RWT/weis_driver_TMDs, 06_IEA-15-240-RWT/weis_driver_monopile and 02_run_openfast_cases/weis_driver_rosco_opt return the error when trying to run them. This is the full traceback that I receive:
Expected behavior
I would expect for WEIS to be able to run the examples.
Code versions
Any help or suggestions would be appreciated. Perhaps I didn't install everything correctly?
Thanks,
Andrew