Skip to content

Installation error /usr/bin/g++ #116

@sambaPython24

Description

@sambaPython24

When trying to install the package with BOOST_INCLUDE_DIRS=/usr/include/boost make all

  mesh/src/aabb_normals.cpp:154:74: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
    154 |     uint32_t* closest_triangles=reinterpret_cast<uint32_t*>(PyArray_DATA(result1));
        |                                                                          ^~~~~~~
        |                                                                          |
        |                                                                          PyObject* {aka _object*}
  /tmp/pip-build-env-pu6yulhm/normal/lib/python3.9/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1508:35: note:   initializing argument 1 of ‘void* PyArray_DATA(const PyArrayObject*)’
   1508 | PyArray_DATA(const PyArrayObject *arr)
        |              ~~~~~~~~~~~~~~~~~~~~~^~~
  mesh/src/aabb_normals.cpp:157:36: warning: narrowing conversion of ‘S’ from ‘size_t’ {aka ‘long unsigned int’} to ‘npy_intp’ {aka ‘long int’} [-Wnarrowing]
    157 |         npy_intp result2_dims[] = {S, 3};
        |                                    ^
  mesh/src/aabb_normals.cpp:159:71: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
    159 |         closest_point=reinterpret_cast<array<double,3>*>(PyArray_DATA(result2));
        |                                                                       ^~~~~~~
        |                                                                       |
        |                                                                       PyObject* {aka _object*}
  /tmp/pip-build-env-pu6yulhm/normal/lib/python3.9/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1508:35: note:   initializing argument 1 of ‘void* PyArray_DATA(const PyArrayObject*)’
   1508 | PyArray_DATA(const PyArrayObject *arr)
        |              ~~~~~~~~~~~~~~~~~~~~~^~~
  error: command '/usr/bin/g++' failed with exit code 1
  error: subprocess-exited-with-error
  
  × Building wheel for psbody-mesh (pyproject.toml) 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.
  full command: /path_to_voca_env/voca_env/bin/python3.9 path_to_voca_env/voca_env/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmp0mqhaqb3
  cwd: /path_to_voca_/voca/voca/psbody-mesh/mesh
  Building wheel for psbody-mesh (pyproject.toml) ... error
  ERROR: Failed building wheel for psbody-mesh
Failed to build psbody-mesh
ERROR: Failed to build installable wheels for some pyproject.toml based projects (psbody-mesh)
make: *** [Makefile:7: all] Error 1

I am using python 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions