spack: spack command recursing and crashing

After updating my fork, and also in a freshly cloned repository spack is crashing:

[throgg@baloney spack]$ spack clean git
Traceback (most recent call last):
  File "/home/throgg/foo/spack/bin/spack", line 179, in <module>
    main()
  File "/home/throgg/foo/spack/bin/spack", line 157, in main
    return_val = command(parser, args)
  File "/home/throgg/foo/spack/lib/spack/spack/cmd/clean.py", line 46, in clean
    package.do_clean()
  File "/home/throgg/foo/spack/lib/spack/spack/package.py", line 1376, in do_clean
    self.stage.destroy()
  File "/home/throgg/foo/spack/lib/spack/spack/package.py", line 532, in stage
    self._stage = self._make_stage()
  File "/home/throgg/foo/spack/lib/spack/spack/package.py", line 512, in _make_stage
    stage = self._make_root_stage(fetcher)
  File "/home/throgg/foo/spack/lib/spack/spack/package.py", line 496, in _make_root_stage
    mp = spack.mirror.mirror_archive_path(self.spec, fetcher)
  File "/home/throgg/foo/spack/lib/spack/spack/mirror.py", line 72, in mirror_archive_path
    return join_path(spec.name, mirror_archive_filename(spec, fetcher))
  File "/home/throgg/foo/spack/lib/spack/spack/mirror.py", line 64, in mirror_archive_filename
    filename = "%s-%s" % (spec.package.name, spec.version)
[...]
  File "/home/throgg/foo/spack/lib/spack/llnl/util/lang.py", line 248, in <lambda>
    setter('__hash__', lambda self: hash(self._cmp_key()))
  File "/home/throgg/foo/spack/lib/spack/spack/spec.py", line 2058, in _cmp_key
    for name in sorted(dep_dict)),)
  File "/home/throgg/foo/spack/lib/spack/spack/spec.py", line 2058, in <genexpr>
    for name in sorted(dep_dict)),)
  File "/home/throgg/foo/spack/lib/spack/llnl/util/lang.py", line 248, in <lambda>
    setter('__hash__', lambda self: hash(self._cmp_key()))
RuntimeError: maximum recursion depth exceeded while calling a Python object

The full trace is here: https://gist.github.com/hartzell/108ac201d1686146386d03148e03dd7c

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 20 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Hang on. It only happens when I try to clean git, not any other packages. My git build blew up a bit ago when I lost my network connection, … Let me get out a big stick and clean house.