Skip to content

Conversation

@sywangyi
Copy link
Contributor

following the https://github.com/huggingface/kernel-builder/blob/main/docs/local-dev.md
error like


      copying /tmp/tmpbzk7cg7n.build-lib/cutlass-gemm/_cutlass_gemm_0063d52.abi3.so -> torch-ext/cutlass-gemm
      Traceback (most recent call last):
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/file_util.py", line 39, in _copy_file_contents
          fdst = open(dst, 'wb')
                 ^^^^^^^^^^^^^^^
      FileNotFoundError: [Errno 2] No such file or directory: 'torch-ext/cutlass-gemm/_cutlass_gemm_0063d52.abi3.so'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 139, in run
          self._create_wheel_file(bdist_wheel)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands
          self._run_build_subcommands()
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands
          self.run_command(name)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
          self.distribution.run_command(command)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
          super().run_command(command)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 102, in run
          self.copy_extensions_to_source()
        File "/opt/venv/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 123, in copy_extensions_to_source
          self.copy_file(regular_file, inplace_file, level=self.verbose)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 421, in copy_file
          return file_util.copy_file(
                 ^^^^^^^^^^^^^^^^^^^^
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/file_util.py", line 157, in copy_file
          _copy_file_contents(src, dst)
        File "/opt/venv/lib/python3.12/site-packages/setuptools/_distutils/file_util.py", line 41, in _copy_file_contents
          raise DistutilsFileError(f"could not create '{dst}': {e.strerror}")
      distutils.errors.DistutilsFileError: could not create 'torch-ext/cutlass-gemm/_cutlass_gemm_0063d52.abi3.so': No such file or directory
      /opt/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py:1021: _DebuggingTips: Problem in editable installation.

@sywangyi
Copy link
Contributor Author

@danieldk please help review

Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thank you. The CI is green here : #314

@danieldk danieldk merged commit df99573 into huggingface:main Nov 26, 2025
28 checks passed
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

Successfully merging this pull request may close these issues.

3 participants