Skip to content

issues when install point_renderer #96

@jangyicheng

Description

@jangyicheng

I encountered an error when using the command pip install -e rvt/libs/point-renderer to install point-renderer:

RuntimeError:  
The detected CUDA version (11.8) mismatches the version that was used to compile  
PyTorch (12.1). Please make sure to use the same CUDA versions.  

Does this mean that this library requires PyTorch version 12.1? However, the PyTorch version specified in the readme instructions is not 12.1 either, which confuses me.

After attempting to change the installation source, the error changed to:

ModuleNotFoundError: No module named 'torch'

But I checked conda list, and the torch library is definitely present. How can I resolve this bug?

The detailed content is as follows:

(rvt) ☁  RVT [master] ⚡  pip install -e rvt/libs/point-renderer    
Obtaining file://robot/ai/RVT/rvt/libs/point-renderer
  Preparing metadata (setup.py) ... done
Installing collected packages: point_renderer
  DEPRECATION: Legacy editable install of point_renderer==0.2.0 from file://robot/ai/RVT/rvt/libs/point-renderer (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
  Running setup.py develop for point_renderer
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [79 lines of output]
        running develop
        robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` and ``develop``.
                Instead, use standards-based tools like pip or uv.
        
                By 2025-Oct-31, you need to update your project and remove deprecated calls
                or your builds will no longer be supported.
        
                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************
        
        !!
          self.initialize_options()
        Obtaining file://robot/ai/RVT/rvt/libs/point-renderer
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Checking if build backend supports build_editable: started
          Checking if build backend supports build_editable: finished with status 'done'
          Getting requirements to build editable: started
          Getting requirements to build editable: finished with status 'error'
          error: subprocess-exited-with-error
        
          × Getting requirements to build editable did not run successfully.
          │ exit code: 1
          ╰─> [19 lines of output]
              Traceback (most recent call last):
                File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
                  main()
                File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
                  json_out["return_val"] = hook(**hook_input["kwargs"])
                File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
                  return hook(config_settings)
                File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
                  return self.get_requires_for_build_wheel(config_settings)
                File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
                  return self._get_build_requires(config_settings, requirements=[])
                File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
                  self.run_setup()
                File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup
                  super().run_setup(setup_script=setup_script)
                File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup
                  exec(code, locals())
                File "<string>", line 16, in <module>
              ModuleNotFoundError: No module named 'torch'
              [end of output]
        
          note: This error originates from a subprocess, and is likely not a problem with pip.
        error: subprocess-exited-with-error
        
        × Getting requirements to build editable 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.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 35, in <module>
          File "robot/ai/RVT/rvt/libs/point-renderer/setup.py", line 65, in <module>
            setup(
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup
            return distutils.core.setup(**attrs)
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
            return run_commands(dist)
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
            dist.run_commands()
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
            self.run_command(cmd)
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command
            super().run_command(command)
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
            cmd_obj.run()
          File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run
            subprocess.check_call(cmd)
          File "robot/anaconda3/envs/rvt/lib/python3.9/subprocess.py", line 373, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['robot/anaconda3/envs/rvt/bin/python3.9', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' 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: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [79 lines of output]
    running develop
    robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``develop``.
            Instead, use standards-based tools like pip or uv.
    
            By 2025-Oct-31, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      self.initialize_options()
    Obtaining file://robot/ai/RVT/rvt/libs/point-renderer
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Checking if build backend supports build_editable: started
      Checking if build backend supports build_editable: finished with status 'done'
      Getting requirements to build editable: started
      Getting requirements to build editable: finished with status 'error'
      error: subprocess-exited-with-error
    
      × Getting requirements to build editable did not run successfully.
      │ exit code: 1
      ╰─> [19 lines of output]
          Traceback (most recent call last):
            File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
              main()
            File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
              json_out["return_val"] = hook(**hook_input["kwargs"])
            File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
              return hook(config_settings)
            File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
              return self.get_requires_for_build_wheel(config_settings)
            File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
              return self._get_build_requires(config_settings, requirements=[])
            File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
              self.run_setup()
            File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup
              super().run_setup(setup_script=setup_script)
            File "/tmp/pip-build-env-z3fckkhq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup
              exec(code, locals())
            File "<string>", line 16, in <module>
          ModuleNotFoundError: No module named 'torch'
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    
    × Getting requirements to build editable 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.
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 35, in <module>
      File "robot/ai/RVT/rvt/libs/point-renderer/setup.py", line 65, in <module>
        setup(
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup
        return distutils.core.setup(**attrs)
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
        return run_commands(dist)
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
        dist.run_commands()
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
        self.run_command(cmd)
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command
        super().run_command(command)
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
        cmd_obj.run()
      File "robot/anaconda3/envs/rvt/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run
        subprocess.check_call(cmd)
      File "robot/anaconda3/envs/rvt/lib/python3.9/subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['robot/anaconda3/envs/rvt/bin/python3.9', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
    [end of output]

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions