Traceback (most recent call last):


 "/spack/bin/spack", line 198, in <module>

main()


 "/spack/bin/spack", line 175, in main

return_val = command(parser, args)


 "/spack/lib/spack/spack/cmd/install.py", line 317, in install

specs = spack.cmd.parse_specs(args.package, concretize=True)


 "/spack/lib/spack/spack/cmd/__init__.py", line 108, in parse_specs

spec.concretize()
# implies normalize


 "/spack/lib/spack/spack/spec.py", line 1542, in concretize

self._expand_virtual_packages(),


 "/spack/lib/spack/spack/spec.py", line 1459, in _expand_virtual_packages

spec)


 "/spack/lib/spack/spack/concretize.py", line 122, in choose_virtual_or_external

candidates = self._valid_virtuals_and_externals(spec)


 "/spack/lib/spack/spack/concretize.py", line 83, in _valid_virtuals_and_externals

externals = spec_externals(cspec)


 "/spack/lib/spack/spack/config.py", line 489, in spec_externals

path = get_path_from_module(module)


 "/spack/lib/spack/spack/build_environment.py", line 149, in get_path_from_module

modulecmd.add_default_arg('python')
AttributeError: 'NoneType' object has no attribute 'add_default_arg'

Traceback (most recent call last):


 "/bin/patronictl", line 11, in <module>

load_entry_point('patroni==1.6.5', 'console_scripts', 'patronictl')()


 "/usr/lib/python2.7/site-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "/usr/lib/python2.7/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/usr/lib/python2.7/site-packages/click/core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/lib/python2.7/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/lib/python2.7/site-packages/click/decorators.py", line 33, in new_func

return f(get_current_context().obj, *args, **kwargs)


 "/usr/lib/python2.7/site-packages/patroni/ctl.py", line 1166, in edit_config

before_editing = format_config_for_editing(cluster.config.data)
AttributeError: 'NoneType' object has no attribute 'data'
