CosmoStat/cosmostat

Install issue on candide

Opened this issue · 0 comments

Sparse2D was installed correctly, but when I'm trying to install cosmostat I'm getting the following errors:
` [ 89%] Built target mrs_inpainting
make[3]: *** [all] Error 2
gmake[2]: *** [sparse2d/src/sparse2d-stamp/sparse2d-build] Error 2
gmake[1]: *** [CMakeFiles/sparse2d.dir/all] Error 2
gmake: *** [all] Error 2
Traceback (most recent call last):
File "/softs/intel/intelpython3-2023.0.0.25636/intelpython/python3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'py_build_cmake.build' has no attribute 'prepare_metadata_for_build_wheel'

  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/softs/intel/intelpython3-2023.0.0.25636/intelpython/python3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/softs/intel/intelpython3-2023.0.0.25636/intelpython/python3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/softs/intel/intelpython3-2023.0.0.25636/intelpython/python3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 160, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/build.py", line 67, in build_wheel
      whl_name = self.build_wheel_in_dir(wheel_directory, tmp_build_dir,
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/build.py", line 248, in build_wheel_in_dir
      self.do_native_cross_cmake_build(paths, cfg, pkg_info)
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/build.py", line 333, in do_native_cross_cmake_build
      self.run_cmake(paths.source_dir, paths.staging_dir, cmake_cfg,
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/build.py", line 511, in run_cmake
      cmaker.build()
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/cmake.py", line 190, in build
      self.run(cmd, cwd=cwd, check=True, env=env)
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/cmake.py", line 68, in run
      return self.runner.run(*args, **kwargs)
    File "/tmp/pip-build-env-b2_n5lg0/overlay/lib/python3.9/site-packages/py_build_cmake/cmd_runner.py", line 25, in run
      return sp_run(*args, **kwargs)
    File "/softs/intel/intelpython3-2023.0.0.25636/intelpython/python3.9/lib/python3.9/subprocess.py", line 528, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['cmake', '--build', '/home/tersenov/software/cosmostat/.py-build-cmake_cache/cp39-cp39-linux_x86_64', '-j 8']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`