pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

ERROR: Failed building wheel for pytorch3d

Open saram098 opened this issue 1 year ago • 16 comments

Every time I download the pytorch3d using pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable' I got this error

I also tried it using pip install 'git+https://github.com/facebookresearch/pytorch3d.git'

ERROR: Failed building wheel for pytorch3d
Running setup.py clean for pytorch3d Failed to build pytorch3d ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects

saram098 avatar Feb 20 '24 14:02 saram098

can you try adding -v to pip install. You might then see what the error is.

bottler avatar Feb 20 '24 14:02 bottler

cwd: /tmp/pip-req-build-d4i5gjer/ Building wheel for pytorch3d (setup.py) ... error ERROR: Failed building wheel for pytorch3d Running setup.py clean for pytorch3d Running command python setup.py clean running clean removing 'build/lib.linux-x86_64-cpython-311' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.11' does not exist -- can't clean it removing 'build' Failed to build pytorch3d ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects

Got this error now

saram098 avatar Feb 21 '24 09:02 saram098

This is much too little information for us to be able to help you. You need to make pip output the actual error being experienced, and -v should help. There may be a log file somewhere created by the build.

bottler avatar Feb 21 '24 09:02 bottler

Using pip 23.2.1 from /home/Linux-VM/anaconda3/lib/python3.11/site-packages/pip (python 3.11)
Collecting git+https://github.com/facebookresearch/pytorch3d.git@stable
  Cloning https://github.com/facebookresearch/pytorch3d.git (to revision stable) to /tmp/pip-req-build-d4i5gjer
  Running command git version
  git version 2.25.1
  Running command git clone --filter=blob:none https://github.com/facebookresearch/pytorch3d.git /tmp/pip-req-build-d4i5gjer
  Cloning into '/tmp/pip-req-build-d4i5gjer'...
  Updating files:   0% (2/1062)
  Updating files:   1% (11/1062)
  Updating files:   2% (22/1062)
  Updating files:   3% (32/1062)
  Updating files:   4% (43/1062)
  Updating files:   5% (54/1062)
  Updating files:   6% (64/1062)
  Updating files:   7% (75/1062)
  Updating files:   8% (85/1062)
  Updating files:   9% (96/1062)
  Updating files:  10% (107/1062)
  Updating files:  11% (117/1062)
  Updating files:  12% (128/1062)
  Updating files:  13% (139/1062)
  Updating files:  14% (149/1062)
  Updating files:  15% (160/1062)
  Updating files:  16% (170/1062)
  Updating files:  17% (181/1062)
  Updating files:  18% (192/1062)
  Updating files:  19% (202/1062)
  Updating files:  20% (213/1062)
  Updating files:  21% (224/1062)
  Updating files:  22% (234/1062)
  Updating files:  23% (245/1062)
  Updating files:  24% (255/1062)
  Updating files:  25% (266/1062)
  Updating files:  26% (277/1062)
  Updating files:  27% (287/1062)
  Updating files:  28% (298/1062)
  Updating files:  29% (308/1062)
  Updating files:  30% (319/1062)
  Updating files:  31% (330/1062)
  Updating files:  32% (340/1062)
  Updating files:  33% (351/1062)
  Updating files:  34% (362/1062)
  Updating files:  35% (372/1062)
  Updating files:  36% (383/1062)
  Updating files:  37% (393/1062)
  Updating files:  38% (404/1062)
  Updating files:  39% (415/1062)
  Updating files:  40% (425/1062)
  Updating files:  41% (436/1062)
  Updating files:  42% (447/1062)
  Updating files:  43% (457/1062)
  Updating files:  44% (468/1062)
  Updating files:  45% (478/1062)
  Updating files:  46% (489/1062)
  Updating files:  47% (500/1062)
  Updating files:  48% (510/1062)
  Updating files:  49% (521/1062)
  Updating files:  50% (531/1062)
  Updating files:  51% (542/1062)
  Updating files:  52% (553/1062)
  Updating files:  53% (563/1062)
  Updating files:  54% (574/1062)
  Updating files:  55% (585/1062)
  Updating files:  56% (595/1062)
  Updating files:  57% (606/1062)
  Updating files:  58% (616/1062)
  Updating files:  59% (627/1062)
  Updating files:  60% (638/1062)
  Updating files:  61% (648/1062)
  Updating files:  62% (659/1062)
  Updating files:  63% (670/1062)
  Updating files:  64% (680/1062)
  Updating files:  65% (691/1062)
  Updating files:  66% (701/1062)
  Updating files:  67% (712/1062)
  Updating files:  68% (723/1062)
  Updating files:  69% (733/1062)
  Updating files:  70% (744/1062)
  Updating files:  71% (755/1062)
  Updating files:  72% (765/1062)
  Updating files:  73% (776/1062)
  Updating files:  74% (786/1062)
  Updating files:  75% (797/1062)
  Updating files:  76% (808/1062)
  Updating files:  77% (818/1062)
  Updating files:  78% (829/1062)
  Updating files:  79% (839/1062)
  Updating files:  80% (850/1062)
  Updating files:  81% (861/1062)
  Updating files:  82% (871/1062)
  Updating files:  83% (882/1062)
  Updating files:  84% (893/1062)
  Updating files:  85% (903/1062)
  Updating files:  86% (914/1062)
  Updating files:  87% (924/1062)
  Updating files:  88% (935/1062)
  Updating files:  89% (946/1062)
  Updating files:  90% (956/1062)
  Updating files:  91% (967/1062)
  Updating files:  92% (978/1062)
  Updating files:  93% (988/1062)
  Updating files:  94% (999/1062)
  Updating files:  95% (1009/1062)
  Updating files:  96% (1020/1062)
  Updating files:  97% (1031/1062)
  Updating files:  98% (1041/1062)
  Updating files:  99% (1052/1062)
  Updating files: 100% (1062/1062)
  Updating files: 100% (1062/1062), done.
  Running command git show-ref stable
  2f11ddc5ee7d6bd56f2fb6744a16776fab6536f7 refs/tags/stable
  Running command git rev-parse HEAD
  f34104cf6ebefacd7b7e07955ee7aaa823e616ac
  Running command git checkout -q 2f11ddc5ee7d6bd56f2fb6744a16776fab6536f7
  Resolved https://github.com/facebookresearch/pytorch3d.git to commit 2f11ddc5ee7d6bd56f2fb6744a16776fab6536f7
  Running command git rev-parse HEAD
  2f11ddc5ee7d6bd56f2fb6744a16776fab6536f7
  Running command python setup.py egg_info
  running egg_info
  creating /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info
  writing /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/dependency_links.txt
  writing entry points to /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/entry_points.txt
  writing requirements to /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/requires.txt
  writing top-level names to /tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/top_level.txt
  writing manifest file '/tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/SOURCES.txt'
  /home/Linux-VM/anaconda3/lib/python3.11/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.'))
  reading manifest file '/tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/SOURCES.txt'
  adding license file 'LICENSE'
  adding license file 'LICENSE-3RD-PARTY'
  writing manifest file '/tmp/pip-pip-egg-info-jg4jj_lx/pytorch3d.egg-info/SOURCES.txt'
  Preparing metadata (setup.py) ... done
Requirement already satisfied: fvcore in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from pytorch3d==0.7.5) (0.1.5.post20221221)
Requirement already satisfied: iopath in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from pytorch3d==0.7.5) (0.1.10)
Requirement already satisfied: numpy in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (1.24.3)
Requirement already satisfied: yacs>=0.1.6 in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (6.0)
Requirement already satisfied: tqdm in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (4.65.0)
Requirement already satisfied: termcolor>=1.1 in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (2.4.0)
Requirement already satisfied: Pillow in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (9.4.0)
Requirement already satisfied: tabulate in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from fvcore->pytorch3d==0.7.5) (0.8.10)
Requirement already satisfied: typing-extensions in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from iopath->pytorch3d==0.7.5) (4.9.0)
Requirement already satisfied: portalocker in /home/Linux-VM/anaconda3/lib/python3.11/site-packages (from iopath->pytorch3d==0.7.5) (2.8.2)
Building wheels for collected packages: pytorch3d
  Running command git rev-parse HEAD
  2f11ddc5ee7d6bd56f2fb6744a16776fab6536f7
  Running command python setup.py bdist_wheel
  running bdist_wheel
  /home/Linux-VM/anaconda3/lib/python3.11/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-311
  creating build/lib.linux-x86_64-cpython-311/pytorch3d
  copying pytorch3d/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d
  creating build/lib.linux-x86_64-cpython-311/projects
  copying projects/__init__.py -> build/lib.linux-x86_64-cpython-311/projects
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/transform3d.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/se3.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/rotation_conversions.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/math.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  copying pytorch3d/transforms/so3.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/transforms
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron
  copying pytorch3d/implicitron/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron
  copying pytorch3d/implicitron/eval_demo.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  copying pytorch3d/structures/volumes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  copying pytorch3d/structures/pointclouds.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  copying pytorch3d/structures/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  copying pytorch3d/structures/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  copying pytorch3d/structures/meshes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/structures
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  copying pytorch3d/utils/ico_sphere.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  copying pytorch3d/utils/camera_conversions.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  copying pytorch3d/utils/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  copying pytorch3d/utils/torus.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  copying pytorch3d/utils/checkerboard.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/utils
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/materials.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/camera_conversions.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/compositing.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/lighting.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/cameras.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/blending.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/fisheyecameras.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/splatter_blend.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  copying pytorch3d/renderer/camera_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/off_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/experimental_gltf_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/pluggable.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/obj_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/pluggable_formats.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/ply_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  copying pytorch3d/io/mtl_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/io
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/datasets
  copying pytorch3d/datasets/shapenet_base.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets
  copying pytorch3d/datasets/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets
  copying pytorch3d/datasets/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/vis
  copying pytorch3d/vis/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/vis
  copying pytorch3d/vis/texture_vis.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/vis
  copying pytorch3d/vis/plotly_vis.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/vis
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/sample_points_from_meshes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/sample_farthest_points.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/cameras_alignment.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/cubify.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/marching_cubes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/points_to_volumes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/knn.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/ball_query.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/points_normals.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/mesh_filtering.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/vert_align.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/graph_conv.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/subdivide_meshes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/marching_cubes_data.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/perspective_n_points.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/points_alignment.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/interp_face_attrs.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/packed_to_padded.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/iou_box3d.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/mesh_face_areas_normals.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  copying pytorch3d/ops/laplacian_matrices.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/ops
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/common
  copying pytorch3d/common/linear_with_repeat.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common
  copying pytorch3d/common/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common
  copying pytorch3d/common/datatypes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common
  copying pytorch3d/common/compat.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/mesh_laplacian_smoothing.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/mesh_edge_loss.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/point_mesh_distance.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/mesh_normal_consistency.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  copying pytorch3d/loss/chamfer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/loss
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/image_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/vis_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/rasterize_mc.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/point_cloud_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/config.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/metric_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/circle_fitting.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/stats.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/model_io.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/depth_cleanup.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/camera_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/video_writer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  copying pytorch3d/implicitron/tools/eval_video_trajectory.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/tools
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/evaluation
  copying pytorch3d/implicitron/evaluation/evaluator.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/evaluation
  copying pytorch3d/implicitron/evaluation/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/evaluation
  copying pytorch3d/implicitron/evaluation/evaluate_new_view_synthesis.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/evaluation
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/third_party
  copying pytorch3d/implicitron/third_party/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/third_party
  copying pytorch3d/implicitron/third_party/pytorch_prototyping.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/third_party
  copying pytorch3d/implicitron/third_party/hyperlayers.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/third_party
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/train_eval_data_loader_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/sql_dataset_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/load_blender.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/data_loader_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/rendered_mesh_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/scene_batch_sampler.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/single_sequence_dataset.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/data_source.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/frame_data.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/visualize.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/load_llff.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/dataset_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/sql_dataset.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/dataset_base.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/json_index_dataset_map_provider_v2.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/llff_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/json_index_dataset.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/orm_types.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/blender_dataset_map_provider.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  copying pytorch3d/implicitron/dataset/types.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/dataset
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/base_model.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/model_dbir.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/generic_model.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/metrics.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  copying pytorch3d/implicitron/models/overfit_model.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/feature_extractor
  copying pytorch3d/implicitron/models/feature_extractor/resnet_feature_extractor.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/feature_extractor
  copying pytorch3d/implicitron/models/feature_extractor/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/feature_extractor
  copying pytorch3d/implicitron/models/feature_extractor/feature_extractor.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/feature_extractor
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/view_pooler
  copying pytorch3d/implicitron/models/view_pooler/view_sampler.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/view_pooler
  copying pytorch3d/implicitron/models/view_pooler/view_pooler.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/view_pooler
  copying pytorch3d/implicitron/models/view_pooler/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/view_pooler
  copying pytorch3d/implicitron/models/view_pooler/feature_aggregator.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/view_pooler
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/global_encoder
  copying pytorch3d/implicitron/models/global_encoder/global_encoder.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/global_encoder
  copying pytorch3d/implicitron/models/global_encoder/autodecoder.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/global_encoder
  copying pytorch3d/implicitron/models/global_encoder/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/global_encoder
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/lstm_renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/ray_sampler.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/multipass_ea.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/ray_tracing.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/raymarcher.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/ray_point_refiner.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/rgb_net.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/sdf_renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  copying pytorch3d/implicitron/models/renderer/base.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/renderer
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/scene_representation_networks.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/neural_radiance_field.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/voxel_grid.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/idr_feature_field.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/decoding_functions.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/voxel_grid_implicit_function.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  copying pytorch3d/implicitron/models/implicit_function/base.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/implicit_function
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/visualization
  copying pytorch3d/implicitron/models/visualization/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/visualization
  copying pytorch3d/implicitron/models/visualization/render_flyaround.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron/models/visualization
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/sample_pdf.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/raysampling.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/raymarching.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  copying pytorch3d/renderer/implicit/harmonic_embedding.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/implicit
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/clip.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/rasterize_meshes.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/rasterizer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/textures.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/shader.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  copying pytorch3d/renderer/mesh/shading.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/mesh
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  copying pytorch3d/renderer/points/rasterize_points.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  copying pytorch3d/renderer/points/compositor.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  copying pytorch3d/renderer/points/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  copying pytorch3d/renderer/points/rasterizer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  copying pytorch3d/renderer/points/renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/opengl
  copying pytorch3d/renderer/opengl/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/opengl
  copying pytorch3d/renderer/opengl/rasterizer_opengl.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/opengl
  copying pytorch3d/renderer/opengl/opengl_utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/opengl
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points/pulsar
  copying pytorch3d/renderer/points/pulsar/unified.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points/pulsar
  copying pytorch3d/renderer/points/pulsar/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points/pulsar
  copying pytorch3d/renderer/points/pulsar/renderer.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/renderer/points/pulsar
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/r2n2
  copying pytorch3d/datasets/r2n2/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/r2n2
  copying pytorch3d/datasets/r2n2/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/r2n2
  copying pytorch3d/datasets/r2n2/r2n2.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/r2n2
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/shapenet
  copying pytorch3d/datasets/shapenet/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/shapenet
  copying pytorch3d/datasets/shapenet/shapenet_core.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/shapenet
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/common/workaround
  copying pytorch3d/common/workaround/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common/workaround
  copying pytorch3d/common/workaround/symeig3x3.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common/workaround
  copying pytorch3d/common/workaround/utils.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/common/workaround
  creating build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron_trainer
  copying projects/implicitron_trainer/visualize_reconstruction.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron_trainer
  copying projects/implicitron_trainer/experiment.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron_trainer
  copying projects/implicitron_trainer/__init__.py -> build/lib.linux-x86_64-cpython-311/pytorch3d/implicitron_trainer
  copying pytorch3d/datasets/r2n2/r2n2_synset_dict.json -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/r2n2
  copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v2.json -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/shapenet
  copying pytorch3d/datasets/shapenet/shapenet_synset_dict_v1.json -> build/lib.linux-x86_64-cpython-311/pytorch3d/datasets/shapenet
  running build_ext
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-req-build-d4i5gjer/setup.py", line 144, in <module>
      setup(
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 325, in run
      self.run_command("build")
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
      super().run_command(command)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
      _build_ext.run(self)
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 509, in build_extensions
      compiler_name, compiler_version = self._check_abi()
                                        ^^^^^^^^^^^^^^^^^
    File "/home/Linux-VM/anaconda3/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 895, in _check_abi
      _, version = get_compiler_abi_compatibility_and_version(compiler)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/Linux-VM/anaconda3/lib/python3.11/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/Linux-VM/anaconda3/lib/python3.11/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/Linux-VM/anaconda3/lib/python3.11/subprocess.py", line 466, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/Linux-VM/anaconda3/lib/python3.11/subprocess.py", line 571, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['which', 'g++']' returned non-zero exit status 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/Linux-VM/anaconda3/bin/python -u -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- 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 = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/tmp/pip-req-build-d4i5gjer/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-komrl96c
  cwd: /tmp/pip-req-build-d4i5gjer/
  Building wheel for pytorch3d (setup.py) ... error
  ERROR: Failed building wheel for pytorch3d
  Running setup.py clean for pytorch3d
  Running command python setup.py clean
  running clean
  removing 'build/lib.linux-x86_64-cpython-311' (and everything under it)
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.11' does not exist -- can't clean it
  removing 'build'
Failed to build pytorch3d
ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projects
(base) Linux-VM@TryLinux:~/Documents/Try-on$ ^C
(base) Linux-VM@TryLinux:~/Documents/Try-on$ cwd: /tmp/pip-req-build-d4i5gjer/
 for pytorch3d (setup.py) ... error
  ERROR: Failed building wheel for pytorch3d
  Running setup.py clean for pytorch3d
  Running command python setup.py clean
  running clean
  removing 'build/lib.linux-x86_64-cpython-311' (and everything under it)
  'build/bdist.linux-x86_64' does not exist -- can't clean it
  'build/scripts-3.11' does not exist -- can't clean it
  removing 'build'
Failed to build pytorch3d
ERROR: Could not build wheels for pytorch3d, which is required to install pyproject.toml-based projectscwd:

This is the error I am getting after running following command: pip install -v 'git+https://github.com/facebookresearch/pytorch3d.git@stable'

saram098 avatar Feb 21 '24 10:02 saram098

Looks like a compiler wasn't found. Do you have dev tools installed? Is nvcc working? (try nvcc --version and g++ --version).

bottler avatar Feb 21 '24 10:02 bottler

Installed Successfully by installing nvcc and g++ Thnaks

saram098 avatar Feb 21 '24 12:02 saram098

# Load SMPL model
smplModelPath = smpl_dir + '/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl'
smpl_model = SMPL(smplModelPath, batch_size=1, create_transl=False).cuda()

# Load HMR model for SMPL
SMPL_MEAN_PARAMS = extra_dir + '/body_module/data_from_spin/data/smpl_mean_params.npz'
regressor_checkpoint = extra_dir + '/body_module/pretrained_weights/2020_05_31-00_50_43-best-51.749683916568756.pt'
model_regressor = hmr(SMPL_MEAN_PARAMS).cuda()
checkpoint = torch.load(regressor_checkpoint)
model_regressor.load_state_dict(checkpoint['model'], strict=False)
model_regressor.eval();

# Body box detection model
body_bbox_detector = BodyPoseEstimator()

# Renderer
input_size = 1920
renderer = Pytorch3dRenderer(img_size=input_size, mesh_color=[1, 1, 1])

when I run this code, I get the error

{
	"name": "RuntimeError",
	"message": "The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.",
	"stack": "---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[6], line 3
      1 # Load SMPL model
      2 smplModelPath = smpl_dir + '/basicModel_neutral_lbs_10_207_0_v1.0.0.pkl'
----> 3 smpl_model = SMPL(smplModelPath, batch_size=1, create_transl=False).cuda()
      5 # Load HMR model for SMPL
      6 SMPL_MEAN_PARAMS = extra_dir + '/body_module/data_from_spin/data/smpl_mean_params.npz'

File ~/Documents/Tryon/.conda/lib/python3.8/site-packages/torch/nn/modules/module.py:911, in Module.cuda(self, device)
    894 def cuda(self: T, device: Optional[Union[int, device]] = None) -> T:
    895     r\"\"\"Move all model parameters and buffers to the GPU.
    896 
    897     This also makes associated parameters and buffers different objects. So
   (...)
    909         Module: self
    910     \"\"\"
--> 911     return self._apply(lambda t: t.cuda(device))

File ~/Documents/Tryon/.conda/lib/python3.8/site-packages/torch/nn/modules/module.py:802, in Module._apply(self, fn, recurse)
    800 if recurse:
    801     for module in self.children():
--> 802         module._apply(fn)
    804 def compute_should_use_set_data(tensor, tensor_applied):
    805     if torch._has_compatible_shallow_copy_type(tensor, tensor_applied):
    806         # If the new tensor has compatible tensor type as the existing tensor,
    807         # the current behavior is to change the tensor in-place using `.data =`,
   (...)
    812         # global flag to let the user control whether they want the future
    813         # behavior of overwriting the existing tensor or not.

File ~/Documents/Tryon/.conda/lib/python3.8/site-packages/torch/nn/modules/module.py:849, in Module._apply(self, fn, recurse)
    847 for key, buf in self._buffers.items():
    848     if buf is not None:
--> 849         self._buffers[key] = fn(buf)
    851 return self

File ~/Documents/Tryon/.conda/lib/python3.8/site-packages/torch/nn/modules/module.py:911, in Module.cuda.<locals>.<lambda>(t)
    894 def cuda(self: T, device: Optional[Union[int, device]] = None) -> T:
    895     r\"\"\"Move all model parameters and buffers to the GPU.
    896 
    897     This also makes associated parameters and buffers different objects. So
   (...)
    909         Module: self
    910     \"\"\"
--> 911     return self._apply(lambda t: t.cuda(device))

File ~/Documents/Tryon/.conda/lib/python3.8/site-packages/torch/cuda/__init__.py:302, in _lazy_init()
    300 if \"CUDA_MODULE_LOADING\" not in os.environ:
    301     os.environ[\"CUDA_MODULE_LOADING\"] = \"LAZY\"
--> 302 torch._C._cuda_init()
    303 # Some of the queued calls may reentrantly call _lazy_init();
    304 # we need to just return without initializing in that case.
    305 # However, we must not let any *other* threads in!
    306 _tls.is_initializing = True

RuntimeError: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver."
}

saram098 avatar Feb 24 '24 11:02 saram098

This isn't a pytorch3d-specific problem. It looks like your pytorch version is too new for your version of the nvidia driver, so PyTorch isn't able to use cuda at all. You need to change versions, and we can't help here.

bottler avatar Feb 26 '24 08:02 bottler

Looks like a compiler wasn't found. Do you have dev tools installed? Is nvcc working? (try nvcc --version and g++ --version).

Hi ! I am having the same issue when trying to install pytorch3d on windows. I've tried adding the -v , but then I am getting way too many prints with remarks. It is even lagging my pc, so I guess it's useless to paste the results. However, sending g++ --version returns an error. so I am guessing I shouldn't look much further. However, should I install g++ through python, or should I install it normally ? If normally, is this link correct ? https://www.freecodecamp.org/news/how-to-install-c-and-cpp-compiler-on-windows/

Neiizo avatar Feb 26 '24 13:02 Neiizo

@Neiizo please open a new issue and report everything the template encourages you to report. Windows is really different. g++ isn't used for this on windows. python extensions are built with the visual C++ compiler / part of visual studio.

bottler avatar Feb 26 '24 13:02 bottler

You can try my repository for building packages and PyPI simple index and see if it works for you (no need to compile it then): https://github.com/facebookresearch/pytorch3d/discussions/1752

MiroPsota avatar Mar 07 '24 12:03 MiroPsota

Looks like a compiler wasn't found. Do you have dev tools installed? Is nvcc working? (try nvcc --version and g++ --version).

(edited comment) ... see also #1770

KomputerMaster64 avatar Mar 30 '24 10:03 KomputerMaster64