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 #101

Open
chouchunan opened this issue Jun 18, 2024 · 0 comments
Open

Failed to build psbody-mesh #101

chouchunan opened this issue Jun 18, 2024 · 0 comments

Comments

@chouchunan
Copy link

(mymesh) user@user-System-Product-Name:~/下載/mesh-master$ BOOST_INCLUDE_DIRS=/usr/include make all
----- [ mesh_package ] Installing with the interpreter /home/user/anaconda3/envs/mymesh/bin/python (version 3.9.19)
Requirement already satisfied: setuptools in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (70.0.0)
Requirement already satisfied: numpy in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (2.0.0)
Requirement already satisfied: matplotlib in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (3.9.0)
Requirement already satisfied: scipy in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (1.13.1)
Requirement already satisfied: pyopengl in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (3.1.7)
Requirement already satisfied: pillow in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 6)) (10.3.0)
Requirement already satisfied: pyzmq in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (26.0.3)
Requirement already satisfied: pyyaml in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 8)) (6.0.1)
Requirement already satisfied: opencv-python in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (4.10.0.84)
Requirement already satisfied: contourpy>=1.0.1 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (1.2.1)
Requirement already satisfied: cycler>=0.10 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (4.53.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (1.4.5)
Requirement already satisfied: packaging>=20.0 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (24.1)
Requirement already satisfied: pyparsing>=2.3.1 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (2.9.0.post0)
Requirement already satisfied: importlib-resources>=3.2.0 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from matplotlib->-r requirements.txt (line 3)) (6.4.0)
Requirement already satisfied: zipp>=3.1.0 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from importlib-resources>=3.2.0->matplotlib->-r requirements.txt (line 3)) (3.19.2)
Requirement already satisfied: six>=1.5 in /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib->-r requirements.txt (line 3)) (1.16.0)
Package Version


alabaster 0.7.16
Babel 2.15.0
certifi 2024.6.2
charset-normalizer 3.3.2
contourpy 1.2.1
cycler 0.12.1
docutils 0.21.2
fonttools 4.53.0
idna 3.7
imagesize 1.4.1
importlib_metadata 7.1.0
importlib_resources 6.4.0
Jinja2 3.1.4
kiwisolver 1.4.5
MarkupSafe 2.1.5
matplotlib 3.9.0
numpy 2.0.0
opencv-python 4.10.0.84
packaging 24.1
pillow 10.3.0
pip 24.0
psbody-mesh 0.4
Pygments 2.18.0
PyOpenGL 3.1.7
pyparsing 3.1.2
python-dateutil 2.9.0.post0
PyYAML 6.0.1
pyzmq 26.0.3
requests 2.32.3
scipy 1.13.1
setuptools 70.0.0
six 1.16.0
snowballstemmer 2.2.0
Sphinx 7.3.7
sphinx-bootstrap-theme 0.8.1
sphinxcontrib-applehelp 1.0.8
sphinxcontrib-devhelp 1.0.6
sphinxcontrib-htmlhelp 2.0.5
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.7
sphinxcontrib-serializinghtml 1.1.10
tomli 2.0.1
urllib3 2.2.2
wheel 0.43.0
zipp 3.19.2
Using pip 24.0 from /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/pip (python 3.9)
Processing /home/user/下載/mesh-master
Running command python setup.py egg_info
[VERSION] read version is 0.4
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

      ********************************************************************************
      Requirements should be satisfied by a PEP 517 installer.
      If you are using pip, you can try `pip install --use-pep517`.
      ********************************************************************************

!!
dist.fetch_build_eggs(dist.setup_requires)
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/dist.py:679: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!

      ********************************************************************************
      Please replace its usage with implicit namespaces (PEP 420).

      See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details.
      ********************************************************************************

!!
ep.load()(self, ep.name, value)
running egg_info
creating /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info
writing /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/dependency_links.txt
writing namespace_packages to /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/namespace_packages.txt
writing requirements to /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/SOURCES.txt'
/home/user/下載/mesh-master/setup.py:145: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

      ********************************************************************************
      Please avoid running ``setup.py`` directly.
      Instead, use pypa/build, pypa/installer or other
      standards-based tools.

      See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
      ********************************************************************************

!!
return _install.initialize_options(self)
reading manifest file '/tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file '/tmp/pip-pip-egg-info-__g1gnrr/psbody_mesh.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Building wheels for collected packages: psbody-mesh
Running command python setup.py bdist_wheel
[VERSION] read version is 0.4
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

      ********************************************************************************
      Requirements should be satisfied by a PEP 517 installer.
      If you are using pip, you can try `pip install --use-pep517`.
      ********************************************************************************

!!
dist.fetch_build_eggs(dist.setup_requires)
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/dist.py:679: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!

      ********************************************************************************
      Please replace its usage with implicit namespaces (PEP 420).

      See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details.
      ********************************************************************************

!!
ep.load()(self, ep.name, value)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/psbody
copying psbody-mesh-namespace/init.py -> build/lib.linux-x86_64-cpython-39/psbody
creating build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/fonts.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/utils.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/texture.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/lines.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/errors.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/mesh.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/version.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/sphere.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/meshviewer.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/init.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/landmarks.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/arcball.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/colors.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/processing.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
copying mesh/search.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh
creating build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
copying mesh/topology/connectivity.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
copying mesh/topology/init.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
copying mesh/topology/decimation.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
copying mesh/topology/subdivision.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
copying mesh/topology/linear_mesh_transform.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/topology
creating build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/triangle_area.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/rodrigues.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/vert_normals.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/tri_normals.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/init.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/barycentric_coordinates_of_projection.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
copying mesh/geometry/cross_product.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/geometry
creating build/lib.linux-x86_64-cpython-39/psbody/mesh/serialization
copying mesh/serialization/serialization.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/serialization
copying mesh/serialization/init.py -> build/lib.linux-x86_64-cpython-39/psbody/mesh/serialization
running build_ext
/home/user/下載/mesh-master/setup.py:145: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

      ********************************************************************************
      Please avoid running ``setup.py`` directly.
      Instead, use pypa/build, pypa/installer or other
      standards-based tools.

      See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
      ********************************************************************************

!!
return _install.initialize_options(self)
[CGAL] deflating cgal from "mesh/thirdparty/CGAL-4.7.tar.gz" to "/home/user/下載/mesh-master/build/temp.linux-x86_64-cpython-39"
building 'psbody.mesh.aabb_normals' extension
creating build/temp.linux-x86_64-cpython-39/mesh
creating build/temp.linux-x86_64-cpython-39/mesh/src
gcc -pthread -B /home/user/anaconda3/envs/mymesh/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/user/anaconda3/envs/mymesh/include -fPIC -O2 -isystem /home/user/anaconda3/envs/mymesh/include -fPIC -DNDEBUG=1 -DCGAL_NDEBUG=1 -DMESH_CGAL_AVOID_COMPILED_VERSION=1 -DCGAL_HAS_NO_THREADS=1 -DCGAL_NO_AUTOLINK_CGAL=1 -Imesh/src -I/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/numpy/_core/include -I/home/user/下載/mesh-master/build/temp.linux-x86_64-cpython-39/CGAL-4.7/include -I/home/user/anaconda3/envs/mymesh/include/python3.9 -c mesh/src/aabb_normals.cpp -o build/temp.linux-x86_64-cpython-39/mesh/src/aabb_normals.o -O3 -fopenmp
In file included from /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909:0,
from /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from mesh/src/aabb_normals.cpp:4:
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
mesh/src/aabb_normals.cpp: In function ‘PyObject* aabbtree_normals_nearest(PyObject*, PyObject*)’:
mesh/src/aabb_normals.cpp:118:41: error: cannot convert ‘PyObject* {aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘npy_intp* PyArray_DIMS(const PyArrayObject*)’
npy_intp* v_dims = PyArray_DIMS(py_v);
^
mesh/src/aabb_normals.cpp:119:41: error: cannot convert ‘PyObject* {aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘npy_intp* PyArray_DIMS(const PyArrayObject*)’
npy_intp* n_dims = PyArray_DIMS(py_n);
^
mesh/src/aabb_normals.cpp:132:91: error: cannot convert ‘PyObject* {aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘void* PyArray_DATA(const PyArrayObject*)’
array<double, 3>* m_sample_points=reinterpret_cast<array<double,3>>(PyArray_DATA(py_v));
^
mesh/src/aabb_normals.cpp:133:86: error: cannot convert ‘PyObject
{aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘void* PyArray_DATA(const PyArrayObject*)’
array<double, 3>* m_sample_n=reinterpret_cast<array<double,3>>(PyArray_DATA(py_n));
^
mesh/src/aabb_normals.cpp:150:36: warning: narrowing conversion of ‘S’ from ‘size_t {aka long unsigned int}’ to ‘npy_intp {aka long int}’ inside { } [-Wnarrowing]
npy_intp result1_dims[] = {1, S};
^
mesh/src/aabb_normals.cpp:154:81: error: cannot convert ‘PyObject
{aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘void* PyArray_DATA(const PyArrayObject*)’
uint32_t* closest_triangles=reinterpret_cast<uint32_t*>(PyArray_DATA(result1));
^
mesh/src/aabb_normals.cpp:157:40: warning: narrowing conversion of ‘S’ from ‘size_t {aka long unsigned int}’ to ‘npy_intp {aka long int}’ inside { } [-Wnarrowing]
npy_intp result2_dims[] = {S, 3};
^
mesh/src/aabb_normals.cpp:159:78: error: cannot convert ‘PyObject* {aka _object*}’ to ‘const PyArrayObject* {aka const tagPyArrayObject_fields*}’ for argument ‘1’ to ‘void* PyArray_DATA(const PyArrayObject*)’
closest_point=reinterpret_cast<array<double,3>*>(PyArray_DATA(result2));
^
error: command '/usr/bin/gcc' failed with exit code 1
error: subprocess-exited-with-error

× python setup.py bdist_wheel 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: /home/user/anaconda3/envs/mymesh/bin/python3.9 -u -c '
exec(compile('"'"''"'"''"'"'

This is -- a caller that pip uses to run setup.py

- It imports setuptools before invoking setup.py, to enable projects that directly

import from distutils.core to work with newer packaging standards.

- It provides a clear error message when setuptools is not installed.

- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so

setuptools doesn'"'"'t think the script is -c. This avoids the following warning:

manifest_maker: standard file '"'"'-c'"'"' not found".

- It generates a shim setup.py, for handling setup.cfg-only projects.

import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)

file = %r
sys.argv[0] = file

if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/user/下載/mesh-master/setup.py'"'"',), "", "exec"))' bdist_wheel -d /tmp/pip-wheel-sfpnu031
cwd: /home/user/下載/mesh-master/
Building wheel for psbody-mesh (setup.py) ... error
ERROR: Failed building wheel for psbody-mesh
Running setup.py clean for psbody-mesh
Running command python setup.py clean
[VERSION] read version is 0.4
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

      ********************************************************************************
      Requirements should be satisfied by a PEP 517 installer.
      If you are using pip, you can try `pip install --use-pep517`.
      ********************************************************************************

!!
dist.fetch_build_eggs(dist.setup_requires)
/home/user/anaconda3/envs/mymesh/lib/python3.9/site-packages/setuptools/dist.py:679: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!

      ********************************************************************************
      Please replace its usage with implicit namespaces (PEP 420).

      See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details.
      ********************************************************************************

!!
ep.load()(self, ep.name, value)
running clean
removing 'build/temp.linux-x86_64-cpython-39' (and everything under it)
removing 'build/lib.linux-x86_64-cpython-39' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.9' does not exist -- can't clean it
removing 'build'
Failed to build psbody-mesh
ERROR: Could not build wheels for psbody-mesh, which is required to install pyproject.toml-based projects
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 1

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