errors with scripts_regression_tests.py

jizh

New Member
Hi all,I am working on porting cesm2.1.1 on a linux machine. When I run ./scripts_regression_tests.py --machine=iocas J_TestCreateNewcase.test_a_createnewcase, I getERROR: Error gathering provenance information from manage_externals. manage_externals error message:    ERROR:root:'ascii' codec can't decode byte 0xe5 in position 2: ordinal not in range(128)    ERROR:root:In directory        /public/home/zhuangzhen/cesm/components/clm    DEV_ERROR: Invalid arguments trying to run subprocess:        git status manage_externals output:    Processing externals description file : Externals.cfg    Processing externals description file : Externals_CLM.cfg    Processing externals description file : Externals_POP.cfg    Processing externals description file : Externals_CISM.cfg    Checking status of externals: clm,     ERROR: In directory        /public/home/zhuangzhen/cesm/components/clm    DEV_ERROR: Invalid arguments trying to run subprocess:        git status To solve this, either: (1) Find and fix the problem: From /public/home/zhuangzhen/cesm, try to get this command to work:    manage_externals/checkout_externals --status --verbose --no-logging (2) If you don't need provenance information, rebuild with --skip-provenance-check------------------ then I run ./manage_externals/checkout_externals --status and I getProcessing externals description file : Externals.cfgProcessing externals description file : Externals_CLM.cfgProcessing externals description file : Externals_POP.cfgProcessing externals description file : Externals_CISM.cfgChecking status of externals: clm, ERROR:root:'ascii' codec can't decode byte 0xe5 in position 2: ordinal not in range(128)ERROR:root:In directory    /public/home/zhuangzhen/cesm/components/clmDEV_ERROR: Invalid arguments trying to run subprocess:    git status  ERROR: In directory    /public/home/zhuangzhen/cesm/components/clmDEV_ERROR: Invalid arguments trying to run subprocess:     git status
-----------Thanks for any help.Jian
 

jialiu

NJNU
Member
I have the same problem, can tell me how to solve it. Thanks!
I also get the same error. It could be caused by the version of python. u can try with python3. If it still doesn't work. Add the following codes to the checkout_externals file.
reload(sys)
sys.setdefaultencoding('utf-8')
1658824815451.png
 
Back
Top