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
- Fix #1429: Remove git dep from gettext; break circular dependency. - It's not really a circular dependency -- git is a run dependency of gettext - We can revert this change when Spack is smart enoug... — committed to mamelara/spack by tgamblin 10 years ago
- Update voxcell and brainbuilder (#1429) — committed to olupton/spack by GianlucaFicarelli 5 years ago
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.