lipku/LiveTalking

No module named '_raymarching_face'

Closed this issue · 6 comments

环境

  • win11
  • conda python10
  • cuda cuda12.4

运行 python app.py 后报错 No module named '_raymarching_face' 如何解决

报错内容

Traceback (most recent call last):
  File "D:\Workspace\LiveTalking\ernerf\raymarching\raymarching.py", line 10, in <module>
    import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Workspace\LiveTalking\app.py", line 454, in <module>
    from ernerf.nerf_triplane.network import NeRFNetwork
  File "D:\Workspace\LiveTalking\ernerf\nerf_triplane\network.py", line 6, in <module>
    from .renderer import NeRFRenderer
  File "D:\Workspace\LiveTalking\ernerf\nerf_triplane\renderer.py", line 10, in <module>
    from .. import raymarching
  File "D:\Workspace\LiveTalking\ernerf\raymarching\__init__.py", line 1, in <module>
    from .raymarching import *
  File "D:\Workspace\LiveTalking\ernerf\raymarching\raymarching.py", line 12, in <module>
    from .backend import _backend
  File "D:\Workspace\LiveTalking\ernerf\raymarching\backend.py", line 31, in <module>
    _backend = load(name='_raymarching_face',
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1202, in load
    return _jit_compile(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1425, in _jit_compile
    _write_ninja_file_and_build_library(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
    _run_ninja_build(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1785, in _run_ninja_build
    vc_env = distutils._msvccompiler._get_vc_env(plat_spec)
AttributeError: module 'distutils' has no attribute '_msvccompiler'. Did you mean: 'ccompiler'?

+1,请问解决了吗

环境

  • win11
  • conda python10
  • cuda cuda12.4

运行 python app.py 后报错 No module named '_raymarching_face' 如何解决

报错内容

Traceback (most recent call last):
  File "D:\Workspace\LiveTalking\ernerf\raymarching\raymarching.py", line 10, in <module>
    import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Workspace\LiveTalking\app.py", line 454, in <module>
    from ernerf.nerf_triplane.network import NeRFNetwork
  File "D:\Workspace\LiveTalking\ernerf\nerf_triplane\network.py", line 6, in <module>
    from .renderer import NeRFRenderer
  File "D:\Workspace\LiveTalking\ernerf\nerf_triplane\renderer.py", line 10, in <module>
    from .. import raymarching
  File "D:\Workspace\LiveTalking\ernerf\raymarching\__init__.py", line 1, in <module>
    from .raymarching import *
  File "D:\Workspace\LiveTalking\ernerf\raymarching\raymarching.py", line 12, in <module>
    from .backend import _backend
  File "D:\Workspace\LiveTalking\ernerf\raymarching\backend.py", line 31, in <module>
    _backend = load(name='_raymarching_face',
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1202, in load
    return _jit_compile(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1425, in _jit_compile
    _write_ninja_file_and_build_library(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
    _run_ninja_build(
  File "D:\anaconda3\envs\nerfstream\lib\site-packages\torch\utils\cpp_extension.py", line 1785, in _run_ninja_build
    vc_env = distutils._msvccompiler._get_vc_env(plat_spec)
AttributeError: module 'distutils' has no attribute '_msvccompiler'. Did you mean: 'ccompiler'?

下面那个报错可以通过降级setuptools版本解决,降至72.1.0以下

_raymarching_face

#119 (comment)

按照这个把里面4个子项目的重新构建一下

_raymarching_face

#119 (comment)

按照这个把里面4个子项目的重新构建一下

[还是失败了
1735455552258

_raymarching_face

#119 (comment)
按照这个把里面4个子项目的重新构建一下

[还是失败了 1735455552258

Visual Studio 2019或者2022 你安装了吗

_raymarching_face

#119 (comment)
按照这个把里面4个子项目的重新构建一下

[还是失败了 1735455552258

Visual Studio 2019或者2022 你安装了吗

安装了!
1735611199299