A user reported this error.
galaxy:~>spack -d -v mirror list
==> Reading config file /local/cjn/.spack/linux/mirrors.yaml
local_filesystem file:///ROWAN/group/pts/spack_mirror/spack-mirror-2017-01-24
galaxy:~>spack -d -v install zlib
==> Reading config file /ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/etc/spack/defaults/packages.yaml
==> READ LOCK: /local/cjn/.spack/cache/providers/.builtin-index.yaml.lock[0:0] [Acquiring]
==> READ LOCK: /local/cjn/.spack/cache/providers/.builtin-index.yaml.lock[0:0] [Released]
==> Reading config file /local/cjn/.spack/linux/compilers.yaml
==> READ LOCK: /ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/opt/spack/.spack-db/prefix_lock[3332486004197984765:1] [Acquiring]
==> READ LOCK: /ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/opt/spack/.spack-db/prefix_lock[3332486004197984765:1] [Released]
==> Installing zlib
==> Error: AttributeError: 'NoneType' object has no attribute 'add_default_arg'
/ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/lib/spack/spack/build_environment.py:567, in child_execution:
547 def child_execution(child_connection, input_stream):
548 try:
549 setup_package(pkg, dirty=dirty)
550 function(input_stream)
551 child_connection.send(None)
552 except StopIteration as e:
553 # StopIteration is used to stop installations
554 # before the final stage, mainly for debug purposes
555 tty.msg(e.message)
556 child_connection.send(None)
557 except:
558 # catch ANYTHING that goes wrong in the child process
559 exc_type, exc, tb = sys.exc_info()
560
561 # Need to unwind the traceback in the child because traceback
562 # objects can't be sent to the parent.
563 tb_string = traceback.format_exc()
564
565 # build up some context from the offending package so we can
566 # show that, too.
>> 567 package_context = get_package_context(tb)
568
569 build_log = None
570 if hasattr(pkg, 'log_path'):
571 build_log = pkg.log_path
572
573 # make a pickleable exception to send to parent.
574 msg = "%s: %s" % (str(exc_type.__name__), str(exc))
575
576 ce = ChildError(msg, tb_string, build_log, package_context)
577 child_connection.send(ce)
578
579 finally:
580 child_connection.close()
Traceback (most recent call last):
File "/ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/lib/spack/spack/build_environment.py", line 549, in child_execution
setup_package(pkg, dirty=dirty)
File "/ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/lib/spack/spack/build_environment.py", line 492, in setup_package
set_compiler_environment_variables(pkg, spack_env)
File "/ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/lib/spack/spack/build_environment.py", line 227, in set_compiler_environment_variables
load_module(mod)
File "/ROWAN/group/prod/LINUX_WORKSTATION/acs/spack/spack-0.10.0/lib/spack/spack/build_environment.py", line 129, in load_module
modulecmd.add_default_arg('python')
AttributeError: 'NoneType' object has no attribute 'add_default_arg'
A user reported this error.
It looks like
load_moduleinbuild_enviroment.pywill fail ifmodulecmdis not available.@alalazo: Is it supposed to be possible to get to this code if the system supports modules? Seems like we should check for
modulecmdup front. I haven't dug into this yet.