I tried copying spack/etc/spack/modules.yaml to ~/.spack and editing to look like below following the example in
https://github.com/LLNL/spack/pull/984and now I get the error below. What am I doing wrong?
modules:
tcl:
%g...@4.9.3:
load:
g...@4.9.3
enable:
- tcl
- dotkit
prefix_inspections:
bin:
- PATH
man:
- MANPATH
lib:
- LIBRARY_PATH
- LD_LIBRARY_PATH
lib64:
- LIBRARY_PATH
- LD_LIBRARY_PATH
include:
- CPATH
lib/pkgconfig:
- PKG_CONFIG_PATH
lib64/pkgconfig:
- PKG_CONFIG_PATH
'':
- CMAKE_PREFIX_PATH
Traceback (most recent call last):
File "/home/gartung/llnl-spack/bin/spack", line 119, in <module>
module = spack.cmd.get_module(cmd)
File "/home/gartung/llnl-spack/lib/spack/spack/cmd/__init__.py", line 72, in get_module
level=0)
File "/home/gartung/llnl-spack/lib/spack/spack/cmd/cd.py", line 26, in <module>
import spack.modules
File "/home/gartung/llnl-spack/lib/spack/spack/modules.py", line 62, in <module>
CONFIGURATION = spack.config.get_config('modules')
File "/home/gartung/llnl-spack/lib/spack/spack/config.py", line 621, in get_config
data = scope.get_section(section)
File "/home/gartung/llnl-spack/lib/spack/spack/config.py", line 474, in get_section
data = _read_config_file(path, schema)
File "/home/gartung/llnl-spack/lib/spack/spack/config.py", line 549, in _read_config_file
"Error parsing yaml%s: %s" % (str(e.context_mark), e.problem))
spack.config.ConfigFileError: Error parsing yamlNone: found character '%' that cannot start any token