-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Spack fails to install when cwd does not exist #29730
Copy link
Copy link
Closed
Labels
Description
Steps to reproduce
harmen-desktop julia-1.7.2-7xre62gf3wq2jlnjwkgdxqbxfjhvzphs $ spack -d install -v julia@:1.7.1
sh: 0: getcwd() failed: No such file or directory
==> [2022-03-26-10:32:12.152463] Reading config file /home/harmen/spack/etc/spack/defaults/config.yaml
==> [2022-03-26-10:32:12.164657] Reading config file /home/harmen/.spack/config.yaml
Traceback (most recent call last):
File "/home/harmen/spack/bin/spack", line 98, in <module>
sys.exit(spack.main.main())
File "/home/harmen/spack/lib/spack/spack/main.py", line 916, in main
return _main(argv)
File "/home/harmen/spack/lib/spack/spack/main.py", line 871, in _main
return finish_parse_and_run(parser, cmd_name, env_format_error)
File "/home/harmen/spack/lib/spack/spack/main.py", line 877, in finish_parse_and_run
command = parser.add_command(cmd_name)
File "/home/harmen/spack/lib/spack/spack/main.py", line 334, in add_command
module = spack.cmd.get_module(cmd_name)
File "/home/harmen/spack/lib/spack/spack/cmd/__init__.py", line 120, in get_module
module = __import__(module_name,
File "/home/harmen/spack/lib/spack/spack/cmd/install.py", line 22, in <module>
import spack.report
File "/home/harmen/spack/lib/spack/spack/report.py", line 235, in <module>
class collect_info(object):
File "/home/harmen/spack/lib/spack/spack/report.py", line 285, in collect_info
def __call__(self, type, dir=os.getcwd()):
FileNotFoundError: [Errno 2] No such file or directory
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 76, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwd(), sys.argv[0]))
FileNotFoundError: [Errno 2] No such file or directory
Original exception was:
Traceback (most recent call last):
File "/home/harmen/spack/bin/spack", line 98, in <module>
sys.exit(spack.main.main())
File "/home/harmen/spack/lib/spack/spack/main.py", line 916, in main
return _main(argv)
File "/home/harmen/spack/lib/spack/spack/main.py", line 871, in _main
return finish_parse_and_run(parser, cmd_name, env_format_error)
File "/home/harmen/spack/lib/spack/spack/main.py", line 877, in finish_parse_and_run
command = parser.add_command(cmd_name)
File "/home/harmen/spack/lib/spack/spack/main.py", line 334, in add_command
module = spack.cmd.get_module(cmd_name)
File "/home/harmen/spack/lib/spack/spack/cmd/__init__.py", line 120, in get_module
module = __import__(module_name,
File "/home/harmen/spack/lib/spack/spack/cmd/install.py", line 22, in <module>
import spack.report
File "/home/harmen/spack/lib/spack/spack/report.py", line 235, in <module>
class collect_info(object):
File "/home/harmen/spack/lib/spack/spack/report.py", line 285, in collect_info
def __call__(self, type, dir=os.getcwd()):
FileNotFoundError: [Errno 2] No such file or directory
Error message
No response
Information on your system
.
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have searched the issues of this repo and believe this is not a duplicate
- I have run the failing commands in debug mode and reported the output
Reactions are currently unavailable