778 Star 1.5K Fork 351

开源中国 / Gitee Feedback

 / 详情

安装v6.0.rc2.alpha001-pytorch2.1.0在执行bash ci/build.sh --python=3.9报错

待确认
缺陷(Bug)
创建于  
2024-04-24 10:07

报错说明

Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib64/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/root/pytorch/codegen/init.py", line 4, in
import torchgen.gen
ModuleNotFoundError: No module named 'torchgen'
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib64/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/root/pytorch/codegen/init.py", line 4, in
import torchgen.gen
ModuleNotFoundError: No module named 'torchgen'
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib64/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/root/pytorch/codegen/init.py", line 4, in
import torchgen.gen
ModuleNotFoundError: No module named 'torchgen'
Existing _op_plugin_docs.py in torch_npu deleted.
operator.cpp: In member function ‘ge::Operator& ge::Operator::SetAttr(const char*, const ge::AscendString&’:
operator.cpp:50:80: warning: no return statement in function returning non-void [-Wreturn-type]
50 | Operator& Operator::SetAttr(const char* name, const AscendString& attr_value) {}

CMake Error at CMakeLists.txt:51 (FIND_PACKAGE):
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Torch", but
CMake did not find one.

Could not find a package configuration file provided by "Torch" with any of
the following names:

TorchConfig.cmake
torch-config.cmake

Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
"Torch_DIR" to a directory containing one of the above files. If "Torch"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "/root/pytorch/build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/root/pytorch/setup.py", line 574, in
setup(
File "/usr/lib/python3.9/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib64/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib64/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib64/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/pytorch/setup.py", line 339, in run
subprocess.check_call([self.cmake, BASE_DIR] + cmake_args, cwd=build_type_dir, env=os.environ)
File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake3', '/root/pytorch', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=/root/pytorch/build/packages/torch_npu/lib', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/pytorch/build/packages/torch_npu/lib', '-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=/root/pytorch/build/packages/torch_npu/lib', '-DTORCHNPU_INSTALL_LIBDIR=/root/pytorch/build/packages/torch_npu/lib', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.9', '-DTORCH_VERSION=2.1.0.post3+gitf2736ef', '-DPYTORCH_INSTALL_DIR=/root/pytorch', '-DBUILD_TORCHAIR=on', '-DTORCHAIR_INSTALL_PREFIX=/root/pytorch/build/packages/torch_npu/dynamo/torchair', '-DTORCHAIR_TARGET_PYTHON=/usr/bin/python3.9', '-DBUILD_TENSORPIPE=on']' returned non-zero exit status 1.
[root@bms-7367-0001 pytorch]# -b v6.0.rc1.alpha002-pytorch2.1.0-b v6.0.rc1.alpha002-pytorch2.1.0
bash: -b: command not found

需求目的(解决什么痛点,带来什么收益)

需求来源(用户,竞品,运营,其他)

用户反馈

环境信息

操作系统:Windows 10
浏览器:Edge
分辨率:1920*1080
语言:zh-CN
来源:https://gitee.com/ascend/pytorch/tree/v6.0.rc2.alpha001-pytorch2.1.0/

评论 (0)

刘喜强 创建了缺陷(Bug)
刘喜强 修改了描述
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback

搜索帮助