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 to build psbody-mesh #8

Open
927087638 opened this issue Jul 1, 2024 · 2 comments
Open

Failed to build psbody-mesh #8

927087638 opened this issue Jul 1, 2024 · 2 comments

Comments

@927087638
Copy link

927087638 commented Jul 1, 2024

encountered a build failure while compiling the psbody-mesh........

  • error message:

      /tmp/pip-build-env-6o0hvk5i/normal/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1520:35: note:   initializing argument 1 of ‘npy_intp* PyArray_DIMS(const PyArrayObject*)’
       1520 | PyArray_DIMS(const PyArrayObject *arr)
            |              ~~~~~~~~~~~~~~~~~~~~~^~~
      mesh/src/aabb_normals.cpp:119:37: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
        119 |     npy_intp* n_dims = PyArray_DIMS(py_n);
            |                                     ^~~~
            |                                     |
            |                                     PyObject* {aka _object*}
            
    ...........
      error: command '/usr/bin/gcc' 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.
    

    Seems like, the numpy api is not compatible with Mesh……..

  • the Cmake cmd

    BOOST_INCLUDE_DIRS=/usr/include/boost make all
  • env:

    • Ubuntu 22.04.4 LTS
    • gcc 11.4.0
    • g++ 11.4.0
    • Python 3.10.14
    • numpy 1.23.5
  • already have

    • removed ./mesh/requirements.txt
    • apt-get install libboost-dev
    • modified ./mesh/Makefile

Emotional damaged, seeking for help........

@YuDeng
Copy link
Owner

YuDeng commented Jul 2, 2024

Hi, it seems that the python version is too high for the psbody-mesh library. Can you try to downgrade python to 3.9 or 3.8 and see if it works?

Alternatively, since psbody-mesh is only used for data processing and does not affect inference, you can simply skip this part if the problem still exists.

@Edisoneh
Copy link

Cool! When I downgrade python to 3.8, it fixed! Thanks!

Hi, it seems that the python version is too high for the psbody-mesh library. Can you try to downgrade python to 3.9 or 3.8 and see if it works?

Alternatively, since psbody-mesh is only used for data processing and does not affect inference, you can simply skip this part if the problem still exists.

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

3 participants