建立Baseline之repo,manifest

本文详细介绍了如何构建私有代码仓库,并利用repo工具进行代码的下载、上传、更新及版本控制,同时提供了通过gerrit实现代码托管的方案,包括配置远程仓库、初始化manifestgit、建立分支、添加及推送代码等步骤。此外,文章还讨论了增加对Git协议的支持以提升访问效率,以及如何将一个完整的git仓库推送到服务器的完整流程。
部署运行你感兴趣的模型镜像
1. 从高通或者谷歌的网站下载repo.git

Clone 
git://codeaurora.org/quic/la/tools/repo 

由于高通用的是caf-stable分支,所以我们要 
$ git checkout caf-stable 

Push repo.git到服务器: 

2. 把repo上传到本地服务器 
创建 
ssh -p 29418   hwh@192.168.5.42 gerrit create-project -p All-Projects -n tools/repo --empty-commit 

Push 
改.git/config 
[core] 
    repositoryformatversion = 0 
    filemode = true 
    bare = false 
    logallrefupdates = true 
[remote "origin"] 
    url =   ssh://hwh@192.168.5.42:29418/tools/repo 此处改为服务器地址
    fetch = +refs/heads/*:refs/remotes/origin/* 
[branch "stable"] 
    remote = origin 
    merge = refs/heads/stable 
[branch "caf-stable"] 
    remote = origin 
    merge = refs/heads/caf-stable 

git push --tags origin HEAD:refs/heads/caf-stable 

3. 更改repo脚本
更改~/bin/repo 

取manifest git时需要用到 
REPO_REV = 'caf-stable' 

4. 建立manifest git
ssh -p 29418   hwh@192.168.5.42 gerrit create-project -p All-Projects -n platform/manifest --empty-commit 

在  http://192.168.5.42:8081/上用图形界面创建  platform/manifest 的分支:  qmc-8974-la-4.0.2-ref    

$ repo init -u   http://192.168.5.42:8081/platform/manifest.git -b qmc-8974-la-4.0.2-ref 
fatal: manifest 'default.xml' not available 
fatal: manifest default.xml not found 

需要新建default文件 
从别处复制default.xml到  .repo/manifests,然后改动default.xml
<manifest> 
  <remote fetch="  http://192.168.5.42:8081" name="origin" review="  http://192.168.5.42:8081"/> 
$ cd .repo/manifests 
$ git add . 
$ git commit -m "XXX" 
winva@winva-Lenovo  :~/project-1T/test/qmc-8974-la-4.0.2-ref/.repo/manifests$  git push ssh://hwh@192.168.5.42:29418/platform/manifest   HEAD:refs/for/qmc-8974-la-4.0.2-ref
在服务器上Merge这个commit,然后重新repo init 

$ repo init -u   http://192.168.5.42:8081/platform/manifest.git   -b qmc-8974-la-4.0.2-ref 
winva@winva-Lenovo:~/project-1T/test/qmc-8974-la-4.0.2-ref$ ll .repo/ 
total 20 
drwxrwxr-x  5 winva winva 4096 Jan 11 10:04 ./ 
drwxrwxr-x  3 winva winva 4096 Jan  9 11:37 ../ 
drwxrwxr-x  3 winva winva 4096 Jan  9 11:50 manifests/ 
drwxrwxr-x 10 winva winva 4096 Jan 11 10:04 manifests.git/ 
lrwxrwxrwx  1 winva winva   21 Jan 11 10:04   manifest.xml -> manifests/default.xml
drwxrwxr-x  7 winva winva 4096 Jan  9 11:37 repo/ 

$ repo sync 

这样仅仅通过gerrit,我们也可以建立一个代码下载没有限制,代码上传需要Key的服务器。完全不需要gitosis。 

5. 完全push一个git到服务器
git push orgin master 
git push仅仅能push到一个分支,如果想把git里的所有分支都push到服务器上只能用scp把整个git复制到服务器上了。 
scp  ../.. 
或者 
以镜像推送的方式上传代码到 GitHub 服务器上。 
        cd project.git 
        git push –mirror   git@github.com:username/newproject.git 

6. 增加支持git协议
未在本机实验,仅供参考:
4.9 Git 守护进程 

对于提供公共的,非授权的只读访问,我们可以抛弃 HTTP 协议,改用 Git 自己的协议,这主要是出于性能和速度的考虑。Git 协议远比 HTTP 协议高效,因而访问速度也快,所以它能节省很多用户的时间。 

重申一下,这一点只适用于非授权的只读访问。如果建在防火墙之外的服务器上,那么它所提供的服务应该只是那些公开的只读项目。如果是在防火墙之内的 服务器上,可用于支撑大量参与人员或自动系统(用于持续集成或编译的主机)只读访问的项目,这样可以省去逐一配置 SSH 公钥的麻烦。 

但不管哪种情形,Git 协议的配置设定都很简单。基本上,只要以守护进程的形式运行该命令即可: 

git daemon --reuseaddr --base-path=/opt/git/ /opt/git/ 
这里的 –reuseaddr 选项表示在重启服务前,不等之前的连接超时就立即重启。而 –base-path 选项则允许克隆项目时不必给出完整路径。最后面的路径告诉 Git 守护进程允许开放给用户访问的仓库目录。假如有防火墙,则需要为该主机的 9418 端口设置为允许通信。 

以守护进程的形式运行该进程的方法有很多,但主要还得看用的是什么操作系统。在 Ubuntu 主机上,可以用 Upstart 脚本达成。编辑该文件: 

/etc/event.d/local-git-daemon 
加入以下内容: 

start on startup 
 stop on shutdown 
 exec /usr/bin/git daemon \ 
 --user=git --group=git \ 
 --reuseaddr \ 
 --base-path=/opt/git/ \ 
 /opt/git/ 
 respawn 
出于安全考虑,强烈建议用一个对仓库只有读取权限的用户身份来运行该进程 — 只需要简单地新建一个名为 git-ro 的用户(译注:新建用户默认对仓库文件不具备写权限,但这取决于仓库目录的权限设定。务必确认git-ro 对仓库只能读不能写。),并用它的身份来启动进程。这里为了简化,后面我们还是用之前运行 Gitosis 的用户 ‘git’。 

这样一来,当你重启计算机时,Git 进程也会自动启动。要是进程意外退出或者被杀掉,也会自行重启。在设置完成后,不重启计算机就启动该守护进程,可以运行: 

initctl start local-git-daemon 
而在其他操作系统上,可以用 xinetd,或者 sysvinit 系统的脚本,或者其他类似的脚本 — 只要能让那个命令变为守护进程并可监控。 

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

这些分支是什么意思:注意事项: "1、禁止直接在 ~/ 目录执行repo 指令 2、init只是初始环境,还需执行repo sync -c -j3 --no-tags才能拉到代码 3、repo sync -c -j3 --no-tags 也是更新代码指令" vendor qssi or missi BP 开发分支 " repo init -u ssh:// username_placeholder@git.odm.mioffice.cn:29418/platform/manifest.git -b lc-dev -m lc-t-xun-native.xml --repo-url=ssh:// username_placeholder@git.odm.mioffice.cn:29418/tools/repo.git --no-repo-verify" repo init -g all -u ssh:// username_placeholder@git.mioffice.cn:29418/platform/manifest.git -b master-t -m missi_t_qcom_lc_native.xml --repo-url= ssh:// username_placeholder@git.mioffice.cn:29418/tools/repo.git --no-repo-verify " repo init -u ssh:// username_placeholder@git.odm.mioffice.cn:29418/platform/manifest.git -b lc-dev -m lc-t-xun-native.xml --repo-url=ssh:// username_placeholder@git.odm.mioffice.cn:29418/tools/repo.git --no-repo-verify -g modem" Post-CS#4 " repo init -u ssh:// username_placeholder@git.odm.mioffice.cn:29418/platform/manifest.git -b lc-baseline -m lc-snapdragon-mid-2022-spf-1-0_r1.0_00011.0_native.xml --repo-url=ssh:// username_placeholder@git.odm.mioffice.cn:29418/tools/repo.git --no-repo-verify" " repo init -u ssh:// username_placeholder@git.odm.mioffice.cn:29418/platform/manifest.git -b lc-baseline -m lc-snapdragon-mid-2022-spf-1-0_r1.0_00011.0_qssi.xml --repo-url=ssh:// username_placeholder@git.odm.mioffice.cn:29418/tools/repo.git --no-repo-verify" " repo init -u ssh:// username_placeholder@git.odm.mioffice.cn:29418/platform/manifest.git -b lc-baseline -m lc-snapdragon-mid-2022-spf-1-0_r1.0_00011.0_native.xml --repo-url=ssh:// username_placeholder@git.odm.mioffice.cn:29418/tools/repo.git --no-repo-verify -g modem"
09-03
running install E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() running bdist_egg running egg_info creating pointnet2.egg-info writing pointnet2.egg-info\PKG-INFO writing dependency_links to pointnet2.egg-info\dependency_links.txt writing top-level names to pointnet2.egg-info\top_level.txt writing manifest file 'pointnet2.egg-info\SOURCES.txt' reading manifest file 'pointnet2.egg-info\SOURCES.txt' writing manifest file 'pointnet2.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext E:\Anaconda\envs\graspnet\lib\site-packages\torch\utils\cpp_extension.py:383: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'pointnet2._ext' extension E:\Anaconda\envs\graspnet\lib\site-packages\torch\cuda\__init__.py:215: UserWarning: NVIDIA GeForce RTX 5060 with CUDA capability sm_120 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_50 sm_60 sm_61 sm_70 sm_75 sm_80 sm_86 sm_90. If you want to use the NVIDIA GeForce RTX 5060 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/ warnings.warn( Emitting ninja build file E:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\ball_query.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\ball_query.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/ball_query.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\ball_query.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\ball_query.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. [2/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\bindings.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\bindings.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/bindings.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\bindings.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\bindings.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. [3/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\cylinder_query.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\cylinder_query.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/cylinder_query.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\cylinder_query.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\cylinder_query.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. [4/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\group_points.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\group_points.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/group_points.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\group_points.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\group_points.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. [5/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\interpolate.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\interpolate.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/interpolate.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\interpolate.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\interpolate.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. [6/11] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site- packages\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -I E:\Anaconda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\sampling.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\sampling.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 FAILED: [code=1] E:/zhuqu/graspnet-baseline/pointnet2/build/temp.win-amd64-cpython-39/Release/_ext_src/src/sampling.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include -IE:\Anaconda\envs\graspnet\lib\site-package s\torch\include\torch\csrc\api\include -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\TH -IE:\Anaconda\envs\graspnet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IE:\Anac onda\envs\graspnet\include -IE:\Anaconda\envs\graspnet\Include -c E:\zhuqu\graspnet-baseline\pointnet2\_ext_src\src\sampling.cpp /FoE:\zhuqu\graspnet-baseline\pointnet2\build\temp.win-amd64-cpython-39\Release\_ext_src/src\sampling.obj -O2 -IE:\zhuqu\graspnet-baseline\pointnet2/_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17 CreateProcess failed: The system cannot find the file specified. ninja: fatal: ReadFile: The handle is invalid. Traceback (most recent call last): File "E:\Anaconda\envs\graspnet\lib\site-packages\torch\utils\cpp_extension.py", line 2100, in _run_ninja_build subprocess.run( File "E:\Anaconda\envs\graspnet\lib\subprocess.py", line 528, 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 "E:\zhuqu\graspnet-baseline\pointnet2\setup.py", line 18, in <module> setup( File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\__init__.py", line 104, in setup return distutils.core.setup(**attrs) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\core.py", line 184, in setup return run_commands(dist) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands dist.run_commands() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\dist.py", line 967, in run_command super().run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\install.py", line 87, in run self.do_egg_install() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\install.py", line 139, in do_egg_install self.run_command('bdist_egg') File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\dist.py", line 967, in run_command super().run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run cmd = self.call_command('install_lib', warn_dir=0) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command self.run_command(cmdname) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\dist.py", line 967, in run_command super().run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\install_lib.py", line 11, in run self.build() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\command\install_lib.py", line 110, in build self.run_command('build_ext') File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\dist.py", line 967, in run_command super().run_command(command) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command cmd_obj.run() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\build_ext.py", line 91, in run _build_ext.run(self) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run self.build_extensions() File "E:\Anaconda\envs\graspnet\lib\site-packages\torch\utils\cpp_extension.py", line 873, in build_extensions build_ext.build_extensions(self) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions self._build_extensions_serial() File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial self.build_extension(ext) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\command\build_ext.py", line 252, in build_extension _build_ext.build_extension(self, ext) File "E:\Anaconda\envs\graspnet\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 560, in build_extension objects = self.compiler.compile( File "E:\Anaconda\envs\graspnet\lib\site-packages\torch\utils\cpp_extension.py", line 845, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "E:\Anaconda\envs\graspnet\lib\site-packages\torch\utils\cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects _run_ninja_build( File "E:\Anaconda\envs\graspnet\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
最新发布
01-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值