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

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
 
Top