Traceback (most recent call last):


 "/home/axel/src/spack/bin/spack", line 64, in <module>

sys.exit(spack.main.main())


 "/home/axel/src/spack/lib/spack/spack/main.py", line 704, in main

ev.activate(env, args.use_env_repo)


 "/home/axel/src/spack/lib/spack/spack/environment.py", line 163, in activate

cmds += env.add_default_view_to_shell(shell)


 "/home/axel/src/spack/lib/spack/spack/environment.py", line 1107, in add_default_view_to_shell

spec, self.default_view))


 "/home/axel/src/spack/lib/spack/spack/user_environment.py", line 89, in environment_modifications_for_spec

spec.package.setup_run_environment(env)


 "/home/axel/src/spack/var/spack/repos/builtin/packages/python/package.py", line 742, in setup_run_environment


 "/home/axel/src/spack/var/spack/repos/builtin/packages/python/package.py", line 709, in headers


 "/home/axel/src/spack/var/spack/repos/builtin/packages/python/package.py", line 599, in get_config_h_filename


 "/home/axel/src/spack/var/spack/repos/builtin/packages/python/package.py", line 556, in command
RuntimeError: Unable to locate python command in /home/axel/src/spack/var/spack/environments/test/.spack-env/view/bin

Traceback (most recent call last):


 "detection.py", line 156, in <module>

main(config)


 "detection.py", line 128, in main

P = torch.sigmoid(model(scratch_image))


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

result = self.forward(*input, **kwargs)


 "/content/photo_restoration/Global/detection_models/networks.py", line 110, in forward

x = self.first(x)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 117, in forward

input = module(input)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl

result = self.forward(*input, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py", line 423, in forward

return self._conv_forward(input, self.weight)


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py", line 420, in _conv_forward

self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same
