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

Question about the CESM2 case set-up?

mengqi

mj
Member
Hi,

I am working with CESM2, but I’m currently unable to set up a case using the prompt below (bold). It’s strange because this prompt worked previously. Could anyone provide some input or suggestions? Thanks!

---------------
(npl) mengqij@derecho5:~/cesm_215_pv/cime/scripts> ./create_newcase --case ~/D_simulation_globe/FHIST_BGC_3_ref --res f09_g17 –compset FHIST_BGC --project UIUC0025 --run-unsupported

Traceback (most recent call last):
File "/glade/u/home/mengqij/cesm_215_pv/cime/scripts/./create_newcase", line 7, in <module>
from Tools.standard_script_setup import *
File "/glade/u/home/mengqij/cesm_215_pv/cime/scripts/Tools/standard_script_setup.py", line 16, in <module>
import CIME.utils
File "/glade/u/home/mengqij/cesm_215_pv/cime/scripts/Tools/../../scripts/lib/CIME/utils.py", line 6, in <module>
import io, logging, gzip, sys, os, time, re, shutil, glob, string, random, imp, fnmatch
ModuleNotFoundError: No module named 'imp'
 

katec

CSEG and Liaisons
Staff member
So, "imp" is an old python library that was removed in Python 3.12 or so. It looks like your current environment has a newer python version than the code you are trying to run is expecting. You should change your conda environment to one that includes python 3.5 or so, I think.
 
Vote Upvote 0 Downvote
Top