-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create a Python venv for the nuopc-app-prototypes #82
Comments
@rocky and @rokuingh - After the call I tested out the procedure manually on Discover with ESMX. Using the default |
My understanding is that that's a system issue that the system maintainers should resolve: My understanding from https://peps.python.org/pep-0394/ is that python installations should install a python3 executable. (In CESM, we recently went through the exercise of changing all of our python shebang lines to |
Okay, that was a false alarm from my side. I am not sure what I thought I was seeing before, but all looks good now. I.e. after |
@theurich to facilitate creating the venv from the surround test scripts, can you please send the full list of commands you ran manually on Discover? |
@rsdunlapiv , here is what I did:
My default shell on Discover is TCSH, so that is why the *.csh flavor in the source line. |
@rsdunlapiv - there is a new twist on Discover. I just noticed that when I load the |
@rsdunlapiv - After some more testing, here is my final recipe on Discover for ESMX testing. This probably also applies to ESMPy testing on Discover:
In my testing, the above procedure ensures there isn't anything funny going on with the NetCDF environment during compiling, loading, and running of ESMX. At the same time it does set up the Python environment so ESMX has what it needs. |
For now we are getting away with just loading an appropriate python module for a specific combo with "extra_module". E.g. for Orion, I added
With that, I did not have to go and implement the full procedure as used for ESMPy. In the future it might become necessary to run the NUOPC apps protos under a Python venv as outlined above. But for now we there is no platform where the simpler I will keep this ticket open as a reminder in case there is a problem with it in the future. |
pyyaml needs to be available for the ESMX_* prototypes
The text was updated successfully, but these errors were encountered: