Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Issue when setup case fro CESM2

yangx2

xinyi yang
Member
I was following the instructions on 1. Introduction — CIME master documentation.
> cd cime/scripts
> ./create_newcase --case mycase --compset X --res f19_g16
> cd mycase
> ./case.setup
First I execute ./create_newcase, everything works. I get:

cesm model version found: release-cesm2.0.1
Batch_system_type is pbs
job is case.run USER_REQUESTED_WALLTIME None USER_REQUESTED_QUEUE None
job is case.st_archive USER_REQUESTED_WALLTIME None USER_REQUESTED_QUEUE None
Creating Case directory /home/yangx2/my_cesm_sandbox/cime/scripts/mycase


However, I got an error when I ./case.setup:
【 ERROR: module command /opt/apps/software/lang/Python/2.7.15-intel-2018.5.274/bin python rm pgi intel gcc failed with message:
/bin/sh: /opt/apps/software/lang/Python/2.7.15-intel-2018.5.274/bin: Is a directory】

Then, I thought it should be related to config_mechines.xml (the part is shown below since I haven't revised the directory for python, Perl so on), which makes sense. But, here, my problem is I CANNOT find the directory for init_path and cmd_path in my cluster. By the way, I am using HPC from my university. I have checked all the possible directories shown in other machines. My machine is called yangx2. Are there some ways that I can try? Also, I am confused about the cmd_path. what is "modulecmd"? Is it a directory or command?


<module_system type="module">
<init_path lang="perl">/opt/ohpc/admin/lmod/8.1.18/init/perl</init_path>
<init_path lang="python">/opt/ohpc/admin/lmod/8.1.18/init/env_modules_python.py</init_path>
<init_path lang="sh">/opt/ohpc/admin/lmod/8.1.18/init/sh</init_path>
<init_path lang="csh">/opt/ohpc/admin/lmod/8.1.18/init/csh</init_path>
<cmd_path lang="perl">/opt/ohpc/admin/lmod/8.1.18/libexec/lmod perl</cmd_path>
<cmd_path lang="python">/opt/ohpc/admin/lmod/8.1.18/libexec/lmod python</cmd_path>
<cmd_path lang="sh">module</cmd_path>
<cmd_path lang="csh">module</cmd_path>


Attached are my config_mechines.xml, config_compilers.xml, config_batch.xml.
Thanks for the help.
Best,
Skylar
 

jedwards

CSEG and Liaisons
Staff member
Are you saying that these paths /opt/ohpc/admin/lmod/8.1.18/init/ and /opt/ohpc/admin/lmod/8.1.18/libexec/l do not exist on your system?
The path in the error message /opt/apps/software/lang/Python/2.7.15-intel-2018.5.274/bin should be the same as the cmd_path_lang="python"
That is it should be /opt/ohpc/admin/lmod/8.1.18/libexec/lmod python Are you sure that the MACH is matching? If you cannot find the path for modules this would be an appropriate question for your HPC support staff.
 

yangx2

xinyi yang
Member
Are you saying that these paths /opt/ohpc/admin/lmod/8.1.18/init/ and /opt/ohpc/admin/lmod/8.1.18/libexec/l do not exist on your system?
The path in the error message /opt/apps/software/lang/Python/2.7.15-intel-2018.5.274/bin should be the same as the cmd_path_lang="python"
That is it should be /opt/ohpc/admin/lmod/8.1.18/libexec/lmod python Are you sure that the MACH is matching? If you cannot find the path for modules this would be an appropriate question for your HPC support staff.
Thanks for the reply.
Those two paths /opt/ohpc/admin/lmod/8.1.18/init/ and /opt/ohpc/admin/lmod/8.1.18/libexec/l does exist on my system, although their directories look very different with other HPC. Then, I enter a path /opt/ohpc/admin/lmod/8.1.18/libexec/, there is a file called lmod. Should I change cmd_path to "/opt/ohpc/admin/lmod/8.1.18/libexec/Imod python"?
I get this directory ( /opt/apps/software/lang/Python/2.7.15-intel-2018.5.274/bin ) through "which" python command. I also sent an emil to our HPC support staff to see what is right path for module.
Thanks for the help!
 

syang

Shawn Yang
Member
Hi there,

I meet the same problem as yours. I would like to ask have you solved your problem?" module command...python...is a directory". Thanks!

Cheers,
Shawn
 
Top