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

xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 106, column 0

jackma

jack
New Member
Hi all,

I'm trying to create a case using CESM2 after editing config_machines.xml and config_compilers.xml files to use an out-of-box machine 'gadi'. I tried to create a case using:


[xiefei@login01 scripts]$ ./create_newcase --case runtestX1 --res f19_g16 --compset X --mach bnus
Compset longname is 2000_XATM_XLND_XICE_XOCN_XROF_XGLC_XWAV
Compset specification file is /ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/src/drivers/mct/cime_config/config_compsets.xml
Compset forcing is 1972-2004
ATM component is Dead atm component
LND component is Dead land component
ICE component is Dead ice component
OCN component is Dead ocean component
ROF component is Dead river component
GLC component is Dead land-ice component
WAV component is Dead wave component
ESP component is
Pes specification file is /ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/src/drivers/mct/cime_config/config_pes.xml
Traceback (most recent call last):
File "./create_newcase", line 218, in <module>
_main_func(__doc__)
File "./create_newcase", line 213, in _main_func
input_dir=input_dir, driver=driver, workflowid=workflow)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 1448, in crea
input_dir=input_dir, driver=driver, workflowid=workflowid)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/case/case.py", line 813, in confi
machobj = Machines(machine=machine_name)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/XML/machines.py", line 36, in __i
GenericXML.__init__(self, infile, schema)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/XML/generic_xml.py", line 57, in
self.read(infile, schema)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/XML/generic_xml.py", line 87, in
self.read_fd(fd)
File "/ddn_lustre/xiefei/zhangts/cesm2_1_3/CESM/cime/scripts/Tools/../../scripts/lib/CIME/XML/generic_xml.py", line 112, in
self.tree = ET.parse(fd)
File "/ddn_lustre/xiefei/anaconda3/lib/python3.6/xml/etree/ElementTree.py", line 1196, in parse
tree.parse(source, parser)
File "/ddn_lustre/xiefei/anaconda3/lib/python3.6/xml/etree/ElementTree.py", line 597, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 106, column 0

Thanks!
 

jedwards

CSEG and Liaisons
Staff member
There appears to be a formatting error in your config_machines.xml. Try using an editor or xml-lint to find the problem.
 
Top