Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building wheel for libigl #247

Open
matlabsy opened this issue Jan 3, 2025 · 0 comments
Open

Failed building wheel for libigl #247

matlabsy opened this issue Jan 3, 2025 · 0 comments

Comments

@matlabsy
Copy link

matlabsy commented Jan 3, 2025

Hello, I'm having some issues
My operating environment is
Ubuntu 22.04.4 LTS (GNU/Linux 6.1.75 aarch64)
python version:Python 3.10.12
cmake --version:cmake version 3.22.1
I pull the main branch code and Enter command : python3 -m pip install ./
Defaulting to user installation because normal site-packages is not writeable
Processing /home/cat/libigl-python-bindings
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from libigl==2.5.4.dev0) (1.23.2)
Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from libigl==2.5.4.dev0) (1.9.0)
Building wheels for collected packages: libigl
Building wheel for libigl (pyproject.toml) ... \

After waiting for a while....

  c++: fatal error: Killed signal terminated program cc1plus
  compilation terminated.
  gmake[2]: *** [CMakeFiles/pyigl.dir/build.make:2576: CMakeFiles/pyigl.dir/heat_geodesic.out.cpp.o] Error 1
  gmake[2]: *** Waiting for unfinished jobs....
  gmake[1]: *** [CMakeFiles/Makefile2:285: CMakeFiles/pyigl.dir/all] Error 2
  gmake: *** [Makefile:136: all] Error 2
  ********************************************************************
  ********************************************************************
  ********************************************************************
  ********************************************************************
  build_args: ['--config', 'Release', '--', '-j8']
  ********************************************************************
  ********************************************************************
  ********************************************************************
  ********************************************************************
  Traceback (most recent call last):
    File "/home/cat/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/cat/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/cat/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 438, in build_wheel
      return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 426, in _build
      return self._build_with_temp_dir(
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 144, in <module>
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 995, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/command/bdist_wheel.py", line 381, in run
      self.run_command("build")
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 995, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 995, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-_mz9bxa6/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "<string>", line 34, in run
    File "<string>", line 124, in build_extension
    File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' 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: Failed building wheel for libigl
Failed to build libigl
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (libigl)

May I ask you, what is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant