首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >fetch/gclient同步作为teamcity的命令行失败

fetch/gclient同步作为teamcity的命令行失败
EN

Stack Overflow用户
提问于 2018-12-05 15:12:37
回答 1查看 184关注 0票数 0

从Windows 2012 (64位)主机上的终端窗口获取/gclient同步很好。TeamCity构建代理是32位应用程序,我无法更改它。当我尝试作为构建步骤运行fetch/gclient同步时,它会失败。在这里,错误消息:

代码语言:javascript
复制
New python executable in C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe

ERROR: The executable C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe is not functioning

ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\config\\systemprofile\\.vpython-root\\ac0e59' (should be u'c:\\windows\\system32\\config\\systemprofile\\.vpython-root\\ac0e59')

ERROR: virtualenv is not compatible with this system or executable

Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.

命令,其中python输出下一个命令:

代码语言:javascript
复制
C:\>where python
C:\utils\depot_tools\python.bat
C:\DevTools\Python27\python.exe

所以我认为这里的主要问题是:

代码语言:javascript
复制
ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\config\\systemprofile\\.vpython-root\\ac0e59' (should be u'c:\\windows\\system32\\config\\systemprofile\\.vpython-root\\ac0e59')

我没有办法解决这个问题。

有什么办法解决吗?

EN

回答 1

Stack Overflow用户

发布于 2018-12-05 20:05:07

很有可能32位构建主机不支持开箱即用。我无法调试它,因为我无法访问这样的机器。

尝试更改您的%PATH%,以便系统安装的Python位于depot_tools之前。这可能有帮助,或者它可能打破随机的其他东西,或根本不起作用。

恐怕你得自己花点时间来调试它。抱歉的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53635334

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档