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

Torch212+CUDA121 build error #81

Closed
zhenyuanzhou opened this issue Apr 23, 2024 · 8 comments
Closed

Torch212+CUDA121 build error #81

zhenyuanzhou opened this issue Apr 23, 2024 · 8 comments

Comments

@zhenyuanzhou
Copy link

running install
F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
running bdist_egg
running egg_info
writing diffvg.egg-info\PKG-INFO
writing dependency_links to diffvg.egg-info\dependency_links.txt
writing requirements to diffvg.egg-info\requires.txt
writing top-level names to diffvg.egg-info\top_level.txt
reading manifest file 'diffvg.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'diffvg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying pydiffvg\color.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\device.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\image.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\optimize_svg.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\parse_svg.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\pixel_filter.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\render_pytorch.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\save_svg.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg\shape.py -> build\lib.win-amd64-cpython-38\pydiffvg
copying pydiffvg_init_.py -> build\lib.win-amd64-cpython-38\pydiffvg
running build_ext
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- pybind11 v2.6.0 dev
-- Using pybind11: (version "2.6.0" dev)
-- Build with CUDA support
-- Configuring done (0.6s)
-- Generating done (0.3s)
-- Build files have been written to: F:/animate-your-word/diffvg/build/temp.win-amd64-cpython-38/Release
适用于 .NET Framework MSBuild 版本 17.9.8+b34f75857

Building NVCC (Device) object CMakeFiles/diffvg.dir/Release/diffvg_generated_diffvg.cpp.obj
CMake Error at diffvg_generated_diffvg.cpp.obj.Release.cmake:220 (message):
Error generating
F:/animate-your-word/diffvg/build/temp.win-amd64-cpython-38/Release/CMakeFiles/diffvg.dir//Release/diffvg_generated
_diffvg.cpp.obj

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(25
4,5): error MSB8066: “F:\animate-your-word\diffvg\diffvg.cpp;F:\animate-your-word\diffvg\scene.cpp”的自定义生成已退出, 代码为 1。 [F:
\animate-your-word\diffvg\build\temp.win-amd64-cpython-38\Release\diffvg.vcxproj]
Traceback (most recent call last):
File "setup.py", line 92, in
setup(name = 'diffvg',
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_init_.py", line 104, in setup
return distutils.core.setup(**attrs)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\core.py", line 184, in setup
return run_commands(dist)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\install.py", line 87, in run
self.do_egg_install()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\install.py", line 139, in do_egg_install
self.run_command('bdist_egg')
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\command\install_lib.py", line 110, in build
self.run_command('build_ext')
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "setup.py", line 31, in run
super().run()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools\command\build_ext.py", line 91, in run
_build_ext.run(self)
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\command\build_ext.py", line 359, in run
self.build_extensions()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\command\build_ext.py", line 479, in build_extensions
self._build_extensions_serial()
File "F:\animate-your-word\dTypo\lib\site-packages\setuptools_distutils\command\build_ext.py", line 505, in _build_extensions_serial
self.build_extension(ext)
File "setup.py", line 66, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "F:\animate-your-word\dTypo\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.

@EUTW06
Copy link

EUTW06 commented Jun 21, 2024

I got same issue, do you figure it out?

@wangtao1979
Copy link

python setup.py build --debug install

@zhenyuanzhou
Copy link
Author

I got same issue, do you figure it out?

No, but you can download a pre-build whl #80. Unfortunately, this whl does not seem to be built with CUDA support.

@kepurG
Copy link

kepurG commented Jul 14, 2024

I spent days and nights to complete the diffvg compilation on Windows. If anyone wants the wheels, you can contact me +V13862010554. Let's create a group to communicate and exchange about the improvements based on the module together.

@zhenyuanzhou
Copy link
Author

I spent days and nights to complete the diffvg compilation on Windows. If anyone wants the wheels, you can contact me +V13862010554. Let's create a group to communicate and exchange about the improvements based on the module together.

Thank you for the invitation, but I'm a clinician and don't know how to program. I'm happy to support you in any kind.

@benbaker76
Copy link

You can check out my fork which has instructions on how to create the wheel and install on Windows.

@MistaLemur
Copy link

MistaLemur commented Sep 16, 2024

You can check out my fork which has instructions on how to create the wheel and install on Windows.

After a bit of hacking about, this worked for me. tyvm

@benbaker76
Copy link

After a bit of hacking about, this worked for me. tyvm

Let me know if there's anything I can add to the README.md to make it easier.

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

6 participants