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

Example 1: os.PathLike object, NoneType error #282

Closed
amineeva-GWT opened this issue May 20, 2024 · 2 comments
Closed

Example 1: os.PathLike object, NoneType error #282

amineeva-GWT opened this issue May 20, 2024 · 2 comments

Comments

@amineeva-GWT
Copy link

Description

When attempting to run example 1, I kept getting the following error:

RuntimeError: Error 4: b'FAST_InitializeAll:HydroDyn_Init:Waves_Init:VariousWaves_Init: The random number generator in use differs from the original code provided by NREL. This pRNG uses 8 seeds instead of the 2 in the HydroDyn input file.\nFAST_InitializeAll:SrvD_Init:BladedInterface_Init:The dynamic library /Users/amineeva/WEIS/local/lib/libdiscon.dylib could not be loaded. Check that the file exists in the specified location and that it is compiled for 64-bit applications.

This seems to be an issue with how WEIS is interfacing with ROSCO - ultimately, the DLL does not point to the correct file, and the example can not run as a result.

Steps to reproduce issue

  1. Clone the main branch of the WEIS repository onto your computer
  2. Open terminal, enter the weis environment
  3. Enter the examples folder within the WEIS repository
  4. Enter example 01 within the examples folder
  5. Attempt to run file 'run_general.py' from the examples folder. I did this using the line python run_general.py from the terminal line.

Current behavior

Currently, running this does not result in a successful run of the example. Instead, the example has a runtime error (and a random number generator error) that comes from the dynamic library not being found. It seems like this location and library is not creating when running the example, so the file is trying to get to an address that doesn't exist.

Expected behavior

It should run example 1 (without error). I am newly learning WEIS and do not know what example 1 should have looked like, but after fixing the problem it seems to be running a time series loop that is meant to simulate ROSCO tuning the controller values.

Code versions

List versions only if relevant

@gbarter
Copy link
Member

gbarter commented May 28, 2024

Hello, it looks like you've edited the ServoDyn entry to be a local path? If you haven't done that, please do so and double check that the libdiscon file is truly there. Also, the ROSCO library should be appropriately compiled for your machine. If you are new to OpenFAST and ROSCO, and these are unfamiliar suggestions, please let me know.

If it helps, we are trending to a release of WEIS, so working off of the develop branch might not be a bad idea if you are comfortable with that.

@dzalkind
Copy link
Collaborator

I think this issue has been resolved with the fix in WISDEM. If not, please re-open and let us know how we can help.

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

No branches or pull requests

3 participants