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

Unable to install pymesh due to CMAKE error #355

Open
wusixer opened this issue Nov 29, 2023 · 0 comments
Open

Unable to install pymesh due to CMAKE error #355

wusixer opened this issue Nov 29, 2023 · 0 comments

Comments

@wusixer
Copy link

wusixer commented Nov 29, 2023

Hello, below is the log for it: could someone give me some suggestions?

CMake Error at /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
    Could not find compiler set in environment variable CXX:

    /da/NBC/ds/rt_env/miniconda3/envs/ci/bin/x86_64-conda_cos6-linux-gnu-g++.

  Call Stack (most recent call first):
    CMakeLists.txt:8 (project)


  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  Traceback (most recent call last):
    File "third_party/build.py", line 78, in <module>
      main();
    File "third_party/build.py", line 75, in main
      build(args.package, args.cleanup);
    File "third_party/build.py", line 63, in build
      cleanup=cleanup);
    File "third_party/build.py", line 43, in build_generic
      subprocess.check_call(cmd.split(), cwd=build_dir);
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/subprocess.py", line 311, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-req-build-gsfly5cl/third_party/../third_party/cgal', '-DBUILD_SHARED_LIBS=Off', '-DCMAKE_POSITION_INDEPENDENT_CODE=On', '-DWITH_CGAL_ImageIO=Off', '-DWITH_CGAL_Qt5=Off', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-req-build-gsfly5cl/third_party/../python/pymesh/third_party/']' returned non-zero exit status 1.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-req-build-gsfly5cl/setup.py", line 199, in <module>
      distclass=BinaryDistribution,
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/tmp/pip-req-build-gsfly5cl/setup.py", line 101, in run
      self.build_third_party()
    File "/tmp/pip-req-build-gsfly5cl/setup.py", line 67, in build_third_party
      check_call(c.split())
    File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/subprocess.py", line 311, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['third_party/build.py', 'cgal']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pymesh2
    ERROR: Command errored out with exit status 1:
     command: /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-gsfly5cl/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-gsfly5cl/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wdv_uc1s/install-record.txt --single-version-externally-managed --compile --install-headers /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/include/python3.6m/pymesh2
         cwd: /tmp/pip-req-build-gsfly5cl/
    Complete output (64 lines):
    /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
      % (opt, underscore_opt)
    running install
    running build
    CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
      Compatibility with CMake < 3.5 will be removed from a future version of
      CMake.

      Update the VERSION argument <min> value or use a ...<max> suffix to tell
      CMake that the project does not need compatibility with older versions.


    == CMake setup ==
    CMake Error at /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
      Could not find compiler set in environment variable CXX:

      /da/NBC/ds/rt_env/miniconda3/envs/ci/bin/x86_64-conda_cos6-linux-gnu-g++.

    Call Stack (most recent call first):
      CMakeLists.txt:8 (project)


    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    -- Configuring incomplete, errors occurred!
    Traceback (most recent call last):
      File "third_party/build.py", line 78, in <module>
        main();
      File "third_party/build.py", line 75, in main
        build(args.package, args.cleanup);
      File "third_party/build.py", line 63, in build
        cleanup=cleanup);
      File "third_party/build.py", line 43, in build_generic
        subprocess.check_call(cmd.split(), cwd=build_dir);
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-req-build-gsfly5cl/third_party/../third_party/cgal', '-DBUILD_SHARED_LIBS=Off', '-DCMAKE_POSITION_INDEPENDENT_CODE=On', '-DWITH_CGAL_ImageIO=Off', '-DWITH_CGAL_Qt5=Off', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-req-build-gsfly5cl/third_party/../python/pymesh/third_party/']' returned non-zero exit status 1.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-gsfly5cl/setup.py", line 199, in <module>
        distclass=BinaryDistribution,
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-req-build-gsfly5cl/setup.py", line 101, in run
        self.build_third_party()
      File "/tmp/pip-req-build-gsfly5cl/setup.py", line 67, in build_third_party
        check_call(c.split())
      File "/da/NBC/ds/rt_env/miniconda3/envs/masif_seed/lib/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['third_party/build.py', 'cgal']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-gsfly5cl/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-gsfly5cl/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-wdv_uc1s/install-record.txt --single-version-externally-managed --compile --install-headers /da/NBC/ds/rt_env/miniconda3/envs/masif_seed/include/python3.6m/pymesh2 Check the logs for full command output.

failed

CondaEnvException: Pip failed
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