ccless 2024-10-28 16:23
浏览 1

selective scan

ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\torch\utils\cpp_extension.py", line 2100, in _run_ninja_build
          subprocess.run(
        File "D:\Software\miniconda\envs\mambayolo\Lib\subprocess.py", line 571, 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 "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "D:\Project\Mamba-YOLO\selective_scan\setup.py", line 142, in <module>
          setup(
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands
          dist.run_commands()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands
          self.run_command(cmd)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\dist.py", line 950, in run_command
          super().run_command(command)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
          cmd_obj.run()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\wheel\_bdist_wheel.py", line 378, in run
          self.run_command("build")
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\dist.py", line 950, in run_command
          super().run_command(command)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
          cmd_obj.run()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
          self.run_command(cmd_name)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\dist.py", line 950, in run_command
          super().run_command(command)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
          cmd_obj.run()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\command\build_ext.py", line 98, in run
          _build_ext.run(self)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
          self.build_extensions()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\torch\utils\cpp_extension.py", line 873, in build_extensions
          build_ext.build_extensions(self)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions
          self._build_extensions_serial()
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial
          self.build_extension(ext)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\command\build_ext.py", line 263, in build_extension
          _build_ext.build_extension(self, ext)
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 557, in build_extension
          objects = self.compiler.compile(
                    ^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\torch\utils\cpp_extension.py", line 845, in win_wrap_ninja_compile
          _write_ninja_file_and_compile_objects(
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\torch\utils\cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
          _run_ninja_build(
        File "D:\Software\miniconda\envs\mambayolo\Lib\site-packages\torch\utils\cpp_extension.py", line 2116, in _run_ninja_build
          raise RuntimeError(message) from e
      RuntimeError: Error compiling objects for extension
      [end of output]

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

我在build selective_scan时遇到了相关报错,我的torch版本是2.1.0+cu118,其中的文件也按照相关文章修改过了。

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 创建了问题 10月28日

    悬赏问题

    • ¥15 c语言做一个简单的计算器,大家来看看
    • ¥15 nuxtjs3+ts 报错,急呀!
    • ¥15 matlab矩阵复数本征值排序
    • ¥15 skynet MySQL ProtocolBuffers
    • ¥15 浏览器关闭事件有时没执行怎么回事
    • ¥15 使用docker安装chemex后无法启动
    • ¥15 关于#vue.js#的问题:word excel和ppt预览问题语言-javascript)
    • ¥15 Apache显示系统错误3该如何解决?
    • ¥30 uniapp小程序苹果手机加载gif图片不显示动效?
    • ¥20 js怎么实现跨域问题