-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env_mach_specific.xsd not general enough to handle my Mac's config_machines #1505
Comments
I just tried your file and it works fine - maybe its an xmllint version issue?
|
@jedwards4b - config_machines.xml itself validates for me. The problem comes with validating the env_mach_specific.xml file that it produces. Sorry, I should have sent that before: <?xml version="1.0"?>
<file id="env_mach_specific.xml" version="2.0">
<header>
These variables control the machine dependent environment including
the paths to compilers and libraries external to cime such as netcdf,
environment variables for use in the running job should also be set here.
</header>
<module_system type="none"/>
<mpirun mpilib="default">
<executable>mpirun</executable>
</mpirun>
<mpirun mpilib="mpi-serial">
<executable/>
</mpirun>
<entry id="run_exe" value="${EXEROOT}/cesm.exe ">
<type>char</type>
<desc>executable name</desc>
</entry>
<entry id="run_misc_suffix" value=" >> cesm.log.$LID 2>&1 ">
<type>char</type>
<desc>redirect for job output</desc>
</entry>
</file>
|
Temporary workaround for others experiencing this problem: --- a/scripts/lib/CIME/XML/env_mach_specific.py
+++ b/scripts/lib/CIME/XML/env_mach_specific.py
@@ -20,7 +20,7 @@ def __init__(self, caseroot=None, infile="env_mach_specific.xml",
"""
fullpath = infile if os.path.isabs(infile) else os.path.join(caseroot, infile)
schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_specific.xsd")
- EnvBase.__init__(self, caseroot, fullpath,schema=schema)
+ EnvBase.__init__(self, caseroot, fullpath,schema=None)
self._unit_testing = unit_testing |
I have a fix PR soon. |
should env_mach_specific.xml validate? |
jgfouca
added a commit
that referenced
this issue
May 10, 2017
Fix env_mach_specific validation Allow the user the option of skipping the xmllint validation of cime xml files. Test suite: scripts_regression_tests.py Test baseline: Test namelist changes: Test status: bit for bit Addresses #1505 User interface changes?: Adds --skip-xml-validation flag to all user interface scripts Code review:
jgfouca
added a commit
that referenced
this issue
Jun 2, 2017
Changes ERS to SMS_D test for cosplite [BFB] - Bit-For-Bit * origin/singhbalwinder/atm/change-cosplite-from-ERS-to-SMS: Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Adds a special instruction for cetus machines regarding cosplite test Changes ERS to SMS_D test for cosplite
jgfouca
added a commit
that referenced
this issue
Feb 23, 2018
Changes ERS to SMS_D test for cosplite [BFB] - Bit-For-Bit * origin/singhbalwinder/atm/change-cosplite-from-ERS-to-SMS: Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Adds a special instruction for cetus machines regarding cosplite test Changes ERS to SMS_D test for cosplite
jgfouca
added a commit
that referenced
this issue
Mar 13, 2018
Changes ERS to SMS_D test for cosplite [BFB] - Bit-For-Bit * origin/singhbalwinder/atm/change-cosplite-from-ERS-to-SMS: Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Adds a special instruction for cetus machines regarding cosplite test Changes ERS to SMS_D test for cosplite
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jedwards4b (or someone else) - can you please help with this?
With recent versions of cime, I am no longer able to build the unit tests or set up a case on my Mac. I get this error:
I am using the following config_machines.xml, which worked until recently:
If I'm reading the error properly, it seems there are two problems:
It doesn't like that I haven't listed anything under "module_system" (which I don't need, because I'm using module_system 'none')
It doesn't like that I'm not setting any environment variables (which I don't need)
Can you please advise on what changes are needed to either my config_machines.xml or to env_mach_specific.xsd so that this validates?
It looks like
config/cesm/machines/userdefined_laptop_template/config_machines.xml
would probably give the same errors as my file, since it is also missing the now-needed pieces.The text was updated successfully, but these errors were encountered: