Skip to content

Error rendering ##: No module named 'frustum_cull_ext' #105

Open

Description

@Fqlox

python demo_render/batch_demo.py --model_path lingbot-map.pt --input_folder example/bx --mask_sky --use_sdpa --load_predictions path --output_folder out --save_glb
I got :

Loading 493 per-frame NPZs: 100%|█████████████████████████████████████████████████████████████| 493/493 [00:02<00:00, 232.00frame/s]
Loaded predictions from out/bx
  Keys: ['pose_enc', 'depth', 'depth_conf', 'extrinsic', 'intrinsic', 'images']
Rendering ## -> ##.mp4
Error rendering out/bx: No module named 'frustum_cull_ext'
Results saved to out\batch_results.json

No GLB nor mp4 files were created.

Activity

  1. LinZhuoChen commented on Aug 30, 2026

    @LinZhuoChen
    Collaborator

    You can try the following command:

    cd demo_render/render_cuda_ext && python setup.py build_ext --inplace && cd ../..
  2. Fqlox commented on Aug 30, 2026

    @Fqlox
    Author

    You can try the following command:

    cd demo_render/render_cuda_ext && python setup.py build_ext --inplace && cd ../..

    Got an error while buidling. I did upgrade CUDA to 12.8 as asked while trying to build it a first time. Still got a compilation error.
    Script exectuted on a miniconda envs on windows 11.
    GPU is a 3090.

    python setup.py build_ext --inplace
    $\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\cuda\__init__.py:63: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
      import pynvml  # type: ignore[import]
    running build_ext
    building 'voxel_morton_ext' extension
    W0830 14:34:20.677000 31356 site-packages\torch\utils\cpp_extension.py:2425] TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
    W0830 14:34:20.677000 31356 site-packages\torch\utils\cpp_extension.py:2425] If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'] to specific architectures.
    $\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\_msvccompiler.py:12: UserWarning: _get_vc_env is private; find an alternative (pypa/distutils#340)
      warnings.warn(
    [1/1] £\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin\nvcc --generate-dependencies-with-compile --dependency-output G:\Python\lingbot-map\demo_render\render_cuda_ext\build\temp.win-amd64-cpython-310\Release\voxel_morton\voxel_morton.obj.d -std=c++17 -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc --use-local-env -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -I$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\include -I$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\include\torch\csrc\api\include "-I£\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\include" -I$\€\miniconda3\envs\lingbot-map\include -I$\€\miniconda3\envs\lingbot-map\Include "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include" "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\ATLMFC\include" "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\VS\include" "-I£\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-I£\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c G:\Python\lingbot-map\demo_render\render_cuda_ext\voxel_morton\voxel_morton.cu -o G:\Python\lingbot-map\demo_render\render_cuda_ext\build\temp.win-amd64-cpython-310\Release\voxel_morton\voxel_morton.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 --use_fast_math -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=voxel_morton_ext -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
    FAILED: [code=2] G:/Python/lingbot-map/demo_render/render_cuda_ext/build/temp.win-amd64-cpython-310/Release/voxel_morton/voxel_morton.obj
    £\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin\nvcc --generate-dependencies-with-compile --dependency-output G:\Python\lingbot-map\demo_render\render_cuda_ext\build\temp.win-amd64-cpython-310\Release\voxel_morton\voxel_morton.obj.d -std=c++17 -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc --use-local-env -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -I$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\include -I$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\include\torch\csrc\api\include "-I£\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\include" -I$\€\miniconda3\envs\lingbot-map\include -I$\€\miniconda3\envs\lingbot-map\Include "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include" "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\ATLMFC\include" "-I£\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\VS\include" "-I£\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-I£\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-I£\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c G:\Python\lingbot-map\demo_render\render_cuda_ext\voxel_morton\voxel_morton.cu -o G:\Python\lingbot-map\demo_render\render_cuda_ext\build\temp.win-amd64-cpython-310\Release\voxel_morton\voxel_morton.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 --use_fast_math -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=voxel_morton_ext -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
    £\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\include\crt/host_config.h(170): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
    voxel_morton.cu
    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\utils\cpp_extension.py", line 2595, in _run_ninja_build
        subprocess.run(
      File "$\€\miniconda3\envs\lingbot-map\lib\subprocess.py", line 526, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 2.
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "G:\Python\lingbot-map\demo_render\render_cuda_ext\setup.py", line 4, in <module>
        setup(
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\__init__.py", line 117, in setup
        return distutils.core.setup(**attrs)  # type: ignore[return-value]
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
        return run_commands(dist)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
        dist.run_commands()
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\dist.py", line 1001, in run_commands
        self.run_command(cmd)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\dist.py", line 1107, in run_command
        super().run_command(command)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\dist.py", line 1020, in run_command
        cmd_obj.run()
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\command\build_ext.py", line 97, in run
        _build_ext.run(self)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 367, in run
        self.build_extensions()
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\utils\cpp_extension.py", line 1072, in build_extensions
        build_ext.build_extensions(self)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 483, in build_extensions
        self._build_extensions_serial()
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 509, in _build_extensions_serial
        self.build_extension(ext)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\command\build_ext.py", line 262, in build_extension
        _build_ext.build_extension(self, ext)
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 564, in build_extension
        objects = self.compiler.compile(
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\utils\cpp_extension.py", line 1041, in win_wrap_ninja_compile
        _write_ninja_file_and_compile_objects(
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\utils\cpp_extension.py", line 2227, in _write_ninja_file_and_compile_objects
        _run_ninja_build(
      File "$\€\miniconda3\envs\lingbot-map\lib\site-packages\torch\utils\cpp_extension.py", line 2612, in _run_ninja_build
        raise RuntimeError(message) from e
    RuntimeError: Error compiling objects for extension
    

    EDIT:

    I did manage to make the project work on wsl.
    It need additional dependencies like Kaolin and open3d

    pip install kaolin==0.18.0 -f https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.8.0_cu128.html
    pip3 install open3d


    Also I needed to reduce the number of worker from 16 to 1 with the argument --config path/to/conf else the processing keep styck at 0% like this issue : #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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