Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Texture Generator is not installed #34

Open
old-toshi opened this issue Mar 11, 2025 · 0 comments
Open

The Texture Generator is not installed #34

old-toshi opened this issue Mar 11, 2025 · 0 comments

Comments

@old-toshi
Copy link

I can't install the texture generator.
Returns an error

Compile-installing custom_rasterizer...
Processing d:!!!!!!!-ai\hunyuan3d2_winportable\hunyuan3d-2\hy3dgen\texgen\custom_rasterizer
Preparing metadata (setup.py) ... done
Building wheels for collected packages: custom_rasterizer
Building wheel for custom_rasterizer (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [83 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\custom_rasterizer
copying .\custom_rasterizer\io_glb.py -> build\lib.win-amd64-cpython-312\custom_rasterizer
copying .\custom_rasterizer\io_obj.py -> build\lib.win-amd64-cpython-312\custom_rasterizer
copying .\custom_rasterizer\render.py -> build\lib.win-amd64-cpython-312\custom_rasterizer
copying .\custom_rasterizer_init_.py -> build\lib.win-amd64-cpython-312\custom_rasterizer
running egg_info
writing custom_rasterizer.egg-info\PKG-INFO
writing dependency_links to custom_rasterizer.egg-info\dependency_links.txt
writing top-level names to custom_rasterizer.egg-info\top_level.txt
reading manifest file 'custom_rasterizer.egg-info\SOURCES.txt'
writing manifest file 'custom_rasterizer.egg-info\SOURCES.txt'
running build_ext
D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'custom_rasterizer_kernel' extension
creating D:!!!!!!!-AI\Hunyuan3D2_WinPortable\Hunyuan3D-2\hy3dgen\texgen\custom_rasterizer\build\temp.win-amd64-cpython-312\Release\lib\custom_rasterizer_kernel
D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(
Emitting ninja build file D:!!!!!!!-AI\Hunyuan3D2_WinPortable\Hunyuan3D-2\hy3dgen\texgen\custom_rasterizer\build\temp.win-amd64-cpython-312\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\Hunyuan3D-2\hy3dgen\texgen\custom_rasterizer\setup.py", line 14, in
setup(
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_init_.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\core.py", line 202, in run_commands
dist.run_commands()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\dist.py", line 1002, in run_commands
self.run_command(cmd)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\command\bdist_wheel.py", line 369, in run
self.run_command("build")
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\command\build.py", line 140, in run
self.run_command(cmd_name)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\dist.py", line 999, in run_command
super().run_command(command)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\dist.py", line 1021, in run_command
cmd_obj.run()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\command\build_ext.py", line 99, in run
_build_ext.run(self)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 375, in run
self.build_extensions()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 868, in build_extensions
build_ext.build_extensions(self)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 491, in build_extensions
self._build_extensions_serial()
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 517, in _build_extensions_serial
self.build_extension(ext)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools\command\build_ext.py", line 264, in build_extension
_build_ext.build_extension(self, ext)
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\setuptools_distutils\command\build_ext.py", line 572, in build_extension
objects = self.compiler.compile(
^^^^^^^^^^^^^^^^^^^^^^
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 840, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 1784, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "D:!!!!!!!-AI\Hunyuan3D2_WinPortable\python_standalone\Lib\site-packages\torch\utils\cpp_extension.py", line 2081, in _run_ninja_build
vc_env = distutils._msvccompiler._get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'distutils._msvccompiler' has no attribute '_get_vc_env'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for custom_rasterizer
Running setup.py clean for custom_rasterizer
Failed to build custom_rasterizer
ERROR: Failed to build installable wheels for some pyproject.toml based projects (custom_rasterizer)
Failed to compile-install custom_rasterizer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant