while i install stable-fast, it reported an error.
`Emitting ninja build file C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\build\temp.win-amd64-cpython-310\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: error: Stat(C:/Users/q1995/AppData/Local/Temp/pip-install-ugtvyy8x/stable-fast_2f652149293c411f9231a1a1ade314b9/build/temp.win-amd64-cpython-310/Release/Users/q1995/AppData/Local/Temp/pip-install-ugtvyy8x/stable-fast_2f652149293c411f9231a1a1ade314b9/src/sfast/csrc/jit/compilation_unit.obj): Filename longer than 260 characters
Traceback (most recent call last):
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "D:\python\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\setup.py", line 220, in
setup(
File "D:\python\lib\site-packages\setuptools__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "D:\python\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "D:\python\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "D:\python\lib\site-packages\setuptools_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\setuptools_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "D:\python\lib\site-packages\setuptools_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "D:\python\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 346, in run
self.build_extensions()
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "D:\python\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 466, in build_extensions
self._build_extensions_serial()
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 492, in _build_extensions_serial
self.build_extension(ext)
File "D:\python\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 547, in build_extension
objects = self.compiler.compile(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 815, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1909, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error
× python setup.py bdist_wheel 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.
full command: 'D:\python\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py
#
- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\setup.py'"'"',), "", "exec"))' bdist_wheel -d 'C:\Users\q1995\AppData\Local\Temp\pip-wheel-737e9q9p'
cwd: C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\
Building wheel for stable-fast (setup.py) ... error
ERROR: Failed building wheel for stable-fast
Running setup.py clean for stable-fast
Running command python setup.py clean
Using CUBLAS from D:\python\lib\site-packages\nvidia\cublas
running clean
removing 'build\temp.win-amd64-cpython-310' (and everything under it)
removing 'build\lib.win-amd64-cpython-310' (and everything under it)
'build\bdist.win-amd64' does not exist -- can't clean it
'build\scripts-3.10' does not exist -- can't clean it
removing 'build'
Failed to build stable-fast
ERROR: Could not build wheels for stable-fast, which is required to install pyproject.toml-based projects`
while i install stable-fast, it reported an error. `Emitting ninja build file C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\build\temp.win-amd64-cpython-310\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) ninja: error: Stat(C:/Users/q1995/AppData/Local/Temp/pip-install-ugtvyy8x/stable-fast_2f652149293c411f9231a1a1ade314b9/build/temp.win-amd64-cpython-310/Release/Users/q1995/AppData/Local/Temp/pip-install-ugtvyy8x/stable-fast_2f652149293c411f9231a1a1ade314b9/src/sfast/csrc/jit/compilation_unit.obj): Filename longer than 260 characters Traceback (most recent call last): File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "D:\python\lib\subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "", line 2, in
File "", line 34, in
File "C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\setup.py", line 220, in
setup(
File "D:\python\lib\site-packages\setuptools__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "D:\python\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "D:\python\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "D:\python\lib\site-packages\setuptools_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\setuptools_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "D:\python\lib\site-packages\setuptools_distutils\cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "D:\python\lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "D:\python\lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "D:\python\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "D:\python\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 346, in run
self.build_extensions()
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "D:\python\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 466, in build_extensions
self._build_extensions_serial()
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 492, in _build_extensions_serial
self.build_extension(ext)
File "D:\python\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "D:\python\lib\site-packages\setuptools_distutils\command\build_ext.py", line 547, in build_extension
objects = self.compiler.compile(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 815, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "D:\python\lib\site-packages\torch\utils\cpp_extension.py", line 1909, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error
× python setup.py bdist_wheel 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. full command: 'D:\python\python.exe' -u -c ' exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py
#
- It imports setuptools before invoking setup.py, to enable projects that directly
import from
distutils.core
to work with newer packaging standards.- It provides a clear error message when setuptools is not installed.
- It sets
sys.argv[0]
to the underlyingsetup.py
, when invokingsetup.py
sosetuptools doesn'"'"'t think the script is
-c
. This avoids the following warning:manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try: import setuptools except ImportError as error: print( "ERROR: Can not execute
setup.py
since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1)file = %r sys.argv[0] = file
if os.path.exists(file): filename = file with tokenize.open(file) as f: setup_py_code = f.read() else: filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\setup.py'"'"',), "", "exec"))' bdist_wheel -d 'C:\Users\q1995\AppData\Local\Temp\pip-wheel-737e9q9p'
cwd: C:\Users\q1995\AppData\Local\Temp\pip-install-ugtvyy8x\stable-fast_2f652149293c411f9231a1a1ade314b9\
Building wheel for stable-fast (setup.py) ... error
ERROR: Failed building wheel for stable-fast
Running setup.py clean for stable-fast
Running command python setup.py clean
Using CUBLAS from D:\python\lib\site-packages\nvidia\cublas
running clean
removing 'build\temp.win-amd64-cpython-310' (and everything under it)
removing 'build\lib.win-amd64-cpython-310' (and everything under it)
'build\bdist.win-amd64' does not exist -- can't clean it
'build\scripts-3.10' does not exist -- can't clean it
removing 'build'
Failed to build stable-fast
ERROR: Could not build wheels for stable-fast, which is required to install pyproject.toml-based projects`