pinocchio: Build error when installing with pip

I am using PyCharm virtual env to install pin, I met the following build error. I have tried to install cmeel but it does not fix the problem. Does anyone know how to fix this?

Thanks in advance.

(venvnew) (base) iai-lab@iailab-System-Product-Name:~/Documents/megapose6d$ pip install pin
Collecting pin
  Using cached pin-2.7.0.tar.gz (61.8 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [62 lines of output]
      Collecting cmeel-boost~=1.83.0
        Using cached cmeel_boost-1.83.0.tar.gz (4.0 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [39 lines of output]
            -- The C compiler identification is GNU 7.5.0
            -- The CXX compiler identification is GNU 7.5.0
            -- Detecting C compiler ABI info
            -- Detecting C compiler ABI info - done
            -- Check for working C compiler: /usr/bin/cc - skipped
            -- Detecting C compile features
            -- Detecting C compile features - done
            -- Detecting CXX compiler ABI info
            -- Detecting CXX compiler ABI info - done
            -- Check for working CXX compiler: /usr/bin/c++ - skipped
            -- Detecting CXX compile features
            -- Detecting CXX compile features - done
            CMake Error at /tmp/pip-build-env-s9j092i6/overlay/lib/python3.9/site-packages/cmake/data/share/cmake-3.29/Modules/FindPython/Support.cmake:719 (file):
              file STRINGS file
              "/home/iai-lab/Downloads/Python-3.9.19/Include/pyconfig.h" cannot be read.
            Call Stack (most recent call first):
              /tmp/pip-build-env-s9j092i6/overlay/lib/python3.9/site-packages/cmake/data/share/cmake-3.29/Modules/FindPython/Support.cmake:3569 (_python_get_version)
              /tmp/pip-build-env-s9j092i6/overlay/lib/python3.9/site-packages/cmake/data/share/cmake-3.29/Modules/FindPython3.cmake:545 (include)
              CMakeLists.txt:11 (find_package)
      
      
            -- Found Python3: /home/iai-lab/Documents/SiameseViT/venvnew/bin/python (found version "3.9.19") found components: Interpreter Development.Module
            -- CONFIGURE_COMMAND: ./bootstrap.sh;--prefix=/tmp/cmeel-6rb9gsy2/whl/cmeel.prefix
            -- BUILD_COMMAND: ./b2;hardcode-dll-paths=true;dll-path='$ORIGIN';link=shared;python=3.9
            -- Configuring incomplete, errors occurred!
            Traceback (most recent call last):
              File "/home/iai-lab/Documents/SiameseViT/venvnew/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                main()
              File "/home/iai-lab/Documents/SiameseViT/venvnew/lib/python3.9/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/iai-lab/Documents/SiameseViT/venvnew/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
                whl_basename = backend.build_wheel(metadata_directory, config_settings)
              File "/tmp/pip-build-env-s9j092i6/overlay/lib/python3.9/site-packages/cmeel/build.py", line 26, in build_wheel
                return build_impl(wheel_directory, editable=False)
              File "/tmp/pip-build-env-s9j092i6/overlay/lib/python3.9/site-packages/cmeel/impl.py", line 100, in build_impl
                check_call(configure_cmd, env=configure_env)
              File "/home/iai-lab/Downloads/Python-3.9.19/Lib/subprocess.py", line 373, in check_call
                raise CalledProcessError(retcode, cmd)
            subprocess.CalledProcessError: Command '['cmake', '-S', '.', '-B', '/tmp/cmeel-6rb9gsy2/bld', '-DBoost_NO_WARN_NEW_VERSIONS=ON', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_LIBDIR=lib', '-DCMAKE_INSTALL_PREFIX=/tmp/cmeel-6rb9gsy2/whl/cmeel.prefix', '-DPYTHON_SITELIB=lib/python3.9/site-packages', '-DPython3_EXECUTABLE=/home/iai-lab/Documents/SiameseViT/venvnew/bin/python', '-DCMAKE_APPLE_SILICON_PROCESSOR=arm64', '-DCMEEL_JOBS=4', '-DBUILD_TESTING=OFF']' returned non-zero exit status 1.
            [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.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

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

System

  • OS: Ubuntu 20.04
  • Python version: 3.9

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (6 by maintainers)

Commits related to this issue

Most upvoted comments

My apologies, I missed understood the original issue. I didn’t realize that it was a local installation and assumed that @WanqingXia was talking about some GitHub Action that should publish Pinocchio to pypi but was falling. Short answer, I do not have this issue. Once again, my apologies…