KTH-RPL / neural_graph_mapping

Neural Graph Mapping for Dense SLAM with Efficient Loop Closure
https://kth-rpl.github.io/neural_graph_mapping/
MIT License
132 stars 9 forks source link

Building pytorch extensions (required for permutohedral_lattice, pytorch3d) fails on WSL2 #2

Closed lucky339aue closed 5 months ago

lucky339aue commented 6 months ago

Building wheel for permutohedral-encoding (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [76 lines of output] /tmp/pip-install-mmzqe5_v/permutohedral-encoding_16192576c92342f29d3d3bedd361ec34/setup.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version Building PyTorch extension for permutohedral_encoding version 1.0 Obtained compute capability 86 from PyTorch nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Mon_Apr3_17:16:06_PDT_2023 Cuda compilation tools, release 12.1, V12.1.105 Build cuda_12.1.r12.1/compiler.32688072_0 Detected CUDA version 12.1 Building for compute capability: 86 ['-DPENC_MIN_GPU_ARCH=86'] running bdist_wheel /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/modules.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/utils.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/init.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/funcs.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/find_cpp_package.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding running build_ext Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-mmzqe5_v/permutohedral-encoding_16192576c92342f29d3d3bedd361ec34/setup.py", line 185, in setup( File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/init__.py", line 104, in setup return distutils.core.setup(*attrs) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run self.run_command("build") File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 91, in run _build_ext.run(self) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 509, in build_extensions compiler_name, compiler_version = self._check_abi() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 895, in _checkabi , version = get_compiler_abi_compatibility_and_version(compiler) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 359, in get_compiler_abi_compatibility_and_version if not check_compiler_ok_for_platform(compiler): File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 312, in check_compiler_ok_for_platform which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/subprocess.py", line 421, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['which', 'g++']' 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: Failed building wheel for permutohedral-encoding Running setup.py clean for permutohedral-encoding Building wheel for PyOpenGL (setup.py) ... done Created wheel for PyOpenGL: filename=PyOpenGL-3.1.0-py3-none-any.whl size=1745192 sha256=2f7298d033e05b368bc003f96b48ca310ff7e8b4dbd18bde4cdea78987410997 Stored in directory: /home/xingnan_001/.cache/pip/wheels/a1/3c/d2/1f9533f908d86176637521e533c6cdb2d4e48b59003b5c3f19 Building wheel for pytorch3d (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [293 lines of output] running bdist_wheel /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/projects copying projects/init.py -> build/lib.linux-x86_64-cpython-310/projects creating build/lib.linux-x86_64-cpython-310/pytorch3d copying pytorch3d/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/splatter_blend.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/fisheyecameras.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/blending.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/compositing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/camera_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/materials.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/lighting.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/camera_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer copying pytorch3d/renderer/cameras.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer creating build/lib.linux-x86_64-cpython-310/pytorch3d/structures copying pytorch3d/structures/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures copying pytorch3d/structures/volumes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures copying pytorch3d/structures/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures copying pytorch3d/structures/pointclouds.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures copying pytorch3d/structures/meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/structures creating build/lib.linux-x86_64-cpython-310/pytorch3d/vis copying pytorch3d/vis/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis copying pytorch3d/vis/plotly_vis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis copying pytorch3d/vis/texture_vis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/vis creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron copying pytorch3d/implicitron/eval_demo.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron copying pytorch3d/implicitron/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron creating build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/math.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/se3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/rotation_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/transform3d.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms copying pytorch3d/transforms/so3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/transforms creating build/lib.linux-x86_64-cpython-310/pytorch3d/common copying pytorch3d/common/linear_with_repeat.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common copying pytorch3d/common/datatypes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common copying pytorch3d/common/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common copying pytorch3d/common/compat.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common creating build/lib.linux-x86_64-cpython-310/pytorch3d/datasets copying pytorch3d/datasets/shapenet_base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets copying pytorch3d/datasets/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets copying pytorch3d/datasets/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets creating build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/off_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/pluggable.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/pluggable_formats.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/ply_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/experimental_gltf_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/mtl_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io copying pytorch3d/io/obj_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/io creating build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/point_mesh_distance.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/mesh_normal_consistency.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/chamfer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/mesh_laplacian_smoothing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss copying pytorch3d/loss/mesh_edge_loss.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/loss creating build/lib.linux-x86_64-cpython-310/pytorch3d/utils copying pytorch3d/utils/ico_sphere.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils copying pytorch3d/utils/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils copying pytorch3d/utils/torus.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils copying pytorch3d/utils/camera_conversions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils copying pytorch3d/utils/checkerboard.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/utils creating build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/graph_conv.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/mesh_filtering.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/perspective_n_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/sample_farthest_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/packed_to_padded.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/iou_box3d.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/interp_face_attrs.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/cameras_alignment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/vert_align.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/cubify.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/ball_query.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/knn.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/laplacian_matrices.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/points_to_volumes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/points_normals.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/subdivide_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/sample_points_from_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/marching_cubes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/mesh_face_areas_normals.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/marching_cubes_data.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops copying pytorch3d/ops/points_alignment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/ops creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points copying pytorch3d/renderer/points/rasterize_points.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points copying pytorch3d/renderer/points/compositor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points copying pytorch3d/renderer/points/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points copying pytorch3d/renderer/points/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points copying pytorch3d/renderer/points/rasterizer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/shading.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/rasterize_meshes.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/clip.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/rasterizer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/shader.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh copying pytorch3d/renderer/mesh/textures.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/mesh creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl copying pytorch3d/renderer/opengl/rasterizer_opengl.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl copying pytorch3d/renderer/opengl/opengl_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl copying pytorch3d/renderer/opengl/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/opengl creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/harmonic_embedding.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/raymarching.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/raysampling.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit copying pytorch3d/renderer/implicit/sample_pdf.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/implicit creating build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar copying pytorch3d/renderer/points/pulsar/renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar copying pytorch3d/renderer/points/pulsar/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar copying pytorch3d/renderer/points/pulsar/unified.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/renderer/points/pulsar creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider_v2.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/sql_dataset_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/dataset_base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/visualize.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/frame_data.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/data_source.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/load_llff.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/single_sequence_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/sql_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/rendered_mesh_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/load_blender.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/blender_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/data_loader_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/scene_batch_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/json_index_dataset.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/orm_types.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/llff_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/train_eval_data_loader_provider.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset copying pytorch3d/implicitron/dataset/types.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/dataset creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/video_writer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/depth_cleanup.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/camera_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/metric_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/vis_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/eval_video_trajectory.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/rasterize_mc.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/point_cloud_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/image_utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/stats.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/config.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/model_io.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools copying pytorch3d/implicitron/tools/circle_fitting.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/tools creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party copying pytorch3d/implicitron/third_party/hyperlayers.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party copying pytorch3d/implicitron/third_party/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party copying pytorch3d/implicitron/third_party/pytorch_prototyping.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/third_party creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation copying pytorch3d/implicitron/evaluation/evaluator.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation copying pytorch3d/implicitron/evaluation/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation copying pytorch3d/implicitron/evaluation/evaluate_new_view_synthesis.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/evaluation creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/generic_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/overfit_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/model_dbir.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/metrics.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models copying pytorch3d/implicitron/models/base_model.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/lstm_renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/sdf_renderer.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/raymarcher.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/multipass_ea.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/ray_tracing.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/ray_point_refiner.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/rgb_net.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/ray_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer copying pytorch3d/implicitron/models/renderer/base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/renderer creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler copying pytorch3d/implicitron/models/view_pooler/view_pooler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler copying pytorch3d/implicitron/models/view_pooler/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler copying pytorch3d/implicitron/models/view_pooler/view_sampler.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler copying pytorch3d/implicitron/models/view_pooler/feature_aggregator.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/view_pooler creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/visualization copying pytorch3d/implicitron/models/visualization/render_flyaround.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/visualization copying pytorch3d/implicitron/models/visualization/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/visualization creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder copying pytorch3d/implicitron/models/global_encoder/autodecoder.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder copying pytorch3d/implicitron/models/global_encoder/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder copying pytorch3d/implicitron/models/global_encoder/global_encoder.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/global_encoder creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/scene_representation_networks.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/idr_feature_field.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/voxel_grid.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/voxel_grid_implicit_function.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/neural_radiance_field.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/base.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function copying pytorch3d/implicitron/models/implicit_function/decoding_functions.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/implicit_function creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor copying pytorch3d/implicitron/models/feature_extractor/feature_extractor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor copying pytorch3d/implicitron/models/feature_extractor/resnet_feature_extractor.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor copying pytorch3d/implicitron/models/feature_extractor/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron/models/feature_extractor creating build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround copying pytorch3d/common/workaround/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround copying pytorch3d/common/workaround/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround copying pytorch3d/common/workaround/symeig3x3.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/common/workaround creating build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2 copying pytorch3d/datasets/r2n2/r2n2.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2 copying pytorch3d/datasets/r2n2/utils.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2 copying pytorch3d/datasets/r2n2/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2 creating build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet copying pytorch3d/datasets/shapenet/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet copying pytorch3d/datasets/shapenet/shapenet_core.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet creating build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer copying projects/implicitron_trainer/visualize_reconstruction.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer copying projects/implicitron_trainer/init.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer copying projects/implicitron_trainer/experiment.py -> build/lib.linux-x86_64-cpython-310/pytorch3d/implicitron_trainer copying pytorch3d/datasets/r2n2/r2n2_synset_dict.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/r2n2 copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v2.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v1.json -> build/lib.linux-x86_64-cpython-310/pytorch3d/datasets/shapenet running build_ext Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-mmzqe5_v/pytorch3d_d0b93b049b1a4579ac4d9761ab0ef68f/setup.py", line 144, in setup( File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(*attrs) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run self.run_command("build") File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 91, in run _build_ext.run(self) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 509, in build_extensions compiler_name, compiler_version = self._check_abi() File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 895, in _checkabi , version = get_compiler_abi_compatibility_and_version(compiler) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 359, in get_compiler_abi_compatibility_and_version if not check_compiler_ok_for_platform(compiler): File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 312, in check_compiler_ok_for_platform which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT) File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/subprocess.py", line 421, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['which', 'g++']' 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: Failed building wheel for pytorch3d Running setup.py clean for pytorch3d Building wheel for fvcore (setup.py) ... done Created wheel for fvcore: filename=fvcore-0.1.5.post20221221-py3-none-any.whl size=61400 sha256=a043ba29afc012fd548a4a0ceb1e286d82d454006b1e5010da0ce2d1dcfc32d0 Stored in directory: /home/xingnan_001/.cache/pip/wheels/01/c0/af/77c1cf53a1be9e42a52b48e5af2169d40ec2e89f7362489dd0 Building wheel for iopath (setup.py) ... done Created wheel for iopath: filename=iopath-0.1.10-py3-none-any.whl size=31532 sha256=c0a81c6678c71b368cf030759d15ff2853dd1ecb0adf4cce592f42a39ee00254 Stored in directory: /home/xingnan_001/.cache/pip/wheels/9a/a3/b6/ac0fcd1b4ed5cfeb3db92e6a0e476cfd48ed0df92b91080c1d Successfully built neural_graph_mapping PyOpenGL fvcore iopath Failed to build permutohedral-encoding pytorch3d ERROR: Could not build wheels for permutohedral-encoding, pytorch3d, which is required to install pyproject.toml-based projects

lucky339aue commented 6 months ago

I saw in the project that there is conda configuration in pipx.look. Is it running in the conda environment? I did not install cuda, cudnn in wsl2

roym899 commented 6 months ago

Did you use pixi and got this error are are you trying to use a custom environment?

lucky339aue commented 6 months ago

您是否使用了 pixi 并收到此错误,您是否尝试使用自定义环境?

Yes, I installed pixi and used it, I also run it on conda, but still the same error

roym899 commented 6 months ago

Hm, I don't have much experience with WSL2. I suspect the g++ version might be wrong. What does

pixi run g++ --version

show?

lucky339aue commented 6 months ago

xingnan_001@DESKTOP-K6GF9VE:~/ceshi/neural_graph_mapping$ pixi run g++ --version g++: command not found

Please tell me which version should I download to be compatible?

roym899 commented 6 months ago

Maybe start with 12.3 and see if there are any issues. You can install it using pixi with

pixi add gxx=12.3
lucky339aue commented 6 months ago

Thank you, after installing gcc=12.3, Successfully built neural_graph_mapping pytorch3d, but ERROR: Failed building wheel for permutohedral-encoding

The error reported is

/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h: In function 'typename pybind11:: detail::type_caster<typename pybind11::detail::intrinsic_type::type>::cast_op_type pybind11::detail::cast_op(make_caster&)': /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected template- name before '<' token 45 return caster.operator typename make_caster::template cast_op_type();
                  ^
  /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected identifier before '<' token
  /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:123: error: expected primary- expression before '>' token
     45 | return caster.operator typename make_caster<T>::template cast_op_type<T>();
        |
                     ^
  /home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/detail/../cast.h:45:126: error: expected primary- expression before ')' token
     45 | return caster.operator typename make_caster<T>::template cast_op_type<T>();
        |
                        ^
  error: command '/home/xingnan_001/ceshi/neural_graph_mapping/.pixi/envs/default/bin/nvcc' failed with exit code 1
  [end of output]

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

Looks like I need to download cuda

lucky339aue commented 6 months ago

Hello, there is a problem, I use pixi list I see

cuda 12.1.0 0 1.4 KiB conda cuda-12.1.0-0.tar.bz2

cuda-nvcc 12.1.105 0 52.4 MiB conda cuda-nvcc-12.1.105-0.tar.bz2 Why is that?,Do I still need to configure CUDA into WSL2?

roym899 commented 6 months ago

This suggests that maybe a lower gxx could help.

lucky339aue commented 6 months ago

Yes I used it pixi add gxx=10 The above error will not occur, but another error will occur `Building wheel for permutohedral-encoding (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [54 lines of output] /tmp/pip-install-b2v55s/permutohedral-encoding_b77c4bf4f2b64f18805391de925f09b9/setup.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version Building PyTorch extension for permutohedral_encoding version 1.0 Obtained compute capability 86 from PyTorch nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Mon_Apr3_17:16:06_PDT_2023 Cuda compilation tools, release 12.1, V12.1.105 Build cuda_12.1.r12.1/compiler.32688072_0 Detected CUDA version 12.1 Building for compute capability: 86 ['-DPENC_MIN_GPU_ARCH=86'] running bdist_wheel /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/funcs.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/modules.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/utils.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/find_cpp_package.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding copying permutohedral_encoding/init.py -> build/lib.linux-x86_64-cpython-310/permutohedral_encoding running build_ext /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/utils/cpp_extension.py:425: UserWarning: There are no g++ version bounds defined for CUDA version 12.1 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'permutohedral_encoding_bindings._86_C' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/permutohedral_encoding creating build/temp.linux-x86_64-cpython-310/permutohedral_encoding/csrc /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/bin/nvcc -I/tmp/pip-install-b2v55s/permutohedral-encoding_b77c4bf4f2b64f18805391de925f09b9/csrc -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/TH -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/THC -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include/python3.10 -c ./permutohedral_encoding/csrc/Encoding.cu -o build/temp.linux-x86_64-cpython-310/./permutohedral_encoding/csrc/Encoding.o -D__CUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -std=c++17 --generate-line-info --extended-lambda --expt-relaxed-constexpr -Xcompiler=-Wno-float-conversion -Xcompiler=-fno-strict-aliasing -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DPENC_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0 gcc -pthread -B /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include -fPIC -O2 -isystem /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include -fPIC -I/tmp/pip-install-b2v55s/permutohedral-encoding_b77c4bf4f2b64f18805391de925f09b9/csrc -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/TH -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/THC -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include -I/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/include/python3.10 -c ./permutohedral_encoding/csrc/PyBridge.cpp -o build/temp.linux-x86_64-cpython-310/./permutohedral_encoding/csrc/PyBridge.o -std=c++17 -DPENC_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0 In file included from /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/torch/csrc/Exceptions.h:14, from /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11, from /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/torch/extension.h:9, from ./permutohedral_encoding/csrc/PyBridge.cpp:1: /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of 'class pybind11::class': ./permutohedral_encoding/csrc/PyBridge.cpp:11:47: required from here /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1496:7: warning: 'pybind11::class' declared with greater visibility than its base 'pybind11::detail::generictype' [-Wattributes] 1496 | class class : public detail::generic_type { | ^~ /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of 'class pybind11::class': ./permutohedral_encoding/csrc/PyBridge.cpp:22:59: required from here /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1496:7: warning: 'pybind11::class' declared with greater visibility than its base 'pybind11::detail::generic_type' [-Wattributes] /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of 'class pybind11::class<EncodingWrapper, std::shared_ptr >': ./permutohedral_encoding/csrc/PyBridge.cpp:28:27: required from here /home/xingbei_001/ceshi/neural_graphmapping/.pixi/envs/default/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1496:7: warning: 'pybind11::class<EncodingWrapper, std::shared_ptr >' declared with greater visibility than its base 'pybind11::detail::generic_type' [-Wattributes] creating build/lib.linux-x86_64-cpython-310/permutohedral_encoding_bindings g++ -pthread -B /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -Wl,-rpath-link,/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -L/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -Wl,-rpath-link,/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -L/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib build/temp.linux-x86_64-cpython-310/./permutohedral_encoding/csrc/Encoding.o build/temp.linux-x86_64-cpython-310/./permutohedral_encoding/csrc/PyBridge.o -L/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib/python3.10/site-packages/torch/lib -L/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/lib -lcuda -lcudadevrt -lcudart_static -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-310/permutohedral_encoding_bindings/_86_C.cpython-310-x86_64-linux-gnu.so /home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/compiler_compat/ld: cannot find -lcuda: No such file or directory collect2: error: ld returned 1 exit status error: command '/home/xingbei_001/ceshi/neural_graph_mapping/.pixi/envs/default/bin/g++' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for permutohedral-encoding Running setup.py clean for permutohedral-encoding Successfully built neural_graph_mapping Failed to build permutohedral-encoding ERROR: Could not build wheels for permutohedral-encoding, which is required to install pyproject.toml-based projects`

roym899 commented 5 months ago

Could you try adding

export LDFLAGS="${LDFLAGS} -L${CONDA_PREFIX}/lib -L${CONDA_PREFIX}/lib/stubs"

to .pixi.sh and see if that helps?

lucky339aue commented 5 months ago

Thank you, I finished it after adding Building wheel for permutohedral-encoding (setup.py) ... done,thank you for your help

roym899 commented 5 months ago

Great to hear. I'll add these fixes to the repo.