vacu9708 opened a new pull request, #17808:
URL: https://github.com/apache/tvm/pull/17808

   # Expected behavior
   "pip install -e /path-to-tvm/python" successfully installs the TVM package 
as documented on https://tvm.apache.org/docs/install/from_source.html#
   
   # Issue
   If "libtvm.so" and "libtvm_runtime.so" remain in "python/tvm" for some 
reason, running "pip install -e /path-to-tvm/python" fails.
   
   # How I got the issue
   I ran "pip install" without "sudo" first, and it failed without "sudo".
   Here libtvm.so and libtvm_runtime.so remained in "python/tvm".
   
   # Cause of the issue
   This issue occurs because exceptions are not handled for shutil.copy() and 
shutil.copytree()
   
   # Error log
   ```
     × Getting requirements to build wheel did not run successfully.
     │ exit code: 1
     ╰─> [21 lines of output]
         Use git describe based version 0.20.dev125+g8ad9bffb1
         Traceback (most recent call last):
           File 
"/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", 
line 363, in <module>
             main()
           File 
"/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", 
line 345, in main
             json_out['return_val'] = hook(**hook_input['kwargs'])
           File 
"/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", 
line 130, in get_requires_for_build_wheel
             return hook(config_settings)
           File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 
162, in get_requires_for_build_wheel
             return self._get_build_requires(
           File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 
143, in _get_build_requires
             self.run_setup()
           File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 
158, in run_setup
             exec(compile(code, __file__, 'exec'), locals())
           File "setup.py", line 197, in <module>
             shutil.copy(path, os.path.join(CURRENT_DIR, "tvm"))
           File "/usr/lib/python3.10/shutil.py", line 417, in copy
             copyfile(src, dst, follow_symlinks=follow_symlinks)
           File "/usr/lib/python3.10/shutil.py", line 234, in copyfile
             raise SameFileError("{!r} and {!r} are the same file".format(src, 
dst))
         shutil.SameFileError: 
'/home/youngsik/Documents/open_source/AI/tvm/python/tvm/libtvm.so' and 
'tvm/libtvm.so' are the same file
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem 
with pip.
   error: subprocess-exited-with-error
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to