由于teamcity的命令行导致fetch / gclient同步失败

时间:2018-12-05 15:12:37

标签: python teamcity v8 windows64 depottools

从Windows Server 2012(64位)主机上的终端窗口中,

fetch / gclient同步工作正常。 TeamCity构建代理是32位应用程序,我无法更改。当我尝试将fetch / gclient同步作为构建步骤运行时,它失败了。这里是错误消息:

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 输出下一个:

C:\>where python
C:\utils\depot_tools\python.bat
C:\DevTools\Python27\python.exe

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

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')

我没有解决办法。

有什么解决办法吗?

1 个答案:

答案 0 :(得分:0)

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

尝试更改您的%PATH%,以便系统安装的Python出现在depot_tools之前。 可能有帮助,或者它可能会破坏随机的其他功能或根本不起作用。

恐怕您将不得不花一些时间自己调试。抱歉。

相关问题