UFS_IC_generator.py Python error on Hera #255
-
This question comes from @wzzheng90 via email: After running "source scm/etc/Hera_setup_intel.csh" first ( shapely is installed ),
The error message shows as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
@wzzheng90 This is a python2/3 problem. The UFS_IC_generator.py script as it sits in the repository is not updated to use python3 yet, but the Hera_setup_intel.csh script is loading python3. This file has been updated to use python3 in #224, but I haven't tested that code sufficiently enough to have it merged into the master. You can try a couple of different things:
|
Beta Was this translation helpful? Give feedback.
-
Hi, Grant, Thank you very much for your quick response!
ModuleNotFoundError: No module named 'fv3_remap' I do not find them on Hera. Could you please inform me where to get them? Weizhong |
Beta Was this translation helpful? Give feedback.
-
Hi, Grant, Sorry, I see "fv3_remap.py" in the same directory but still do not find "xesmf": import xesmf Thanks, Weizhong |
Beta Was this translation helpful? Give feedback.
-
Hi, Grant, Your instructions are really helpful. I can be able to set up a virtual environment and run your example with the new version of UFS_IC_generator.py. And also the SCM works well with its data input. Thank you very much again! Weizhong |
Beta Was this translation helpful? Give feedback.
@wzzheng90 This is a python2/3 problem. The UFS_IC_generator.py script as it sits in the repository is not updated to use python3 yet, but the Hera_setup_intel.csh script is loading python3.
This file has been updated to use python3 in #224, but I haven't tested that code sufficiently enough to have it merged into the master. You can try a couple of different things: