从Windows 2012 (64位)主机上的终端窗口获取/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')我没有办法解决这个问题。
有什么办法解决吗?
发布于 2018-12-05 20:05:07
很有可能32位构建主机不支持开箱即用。我无法调试它,因为我无法访问这样的机器。
尝试更改您的%PATH%,以便系统安装的Python位于depot_tools之前。这可能有帮助,或者它可能打破随机的其他东西,或根本不起作用。
恐怕你得自己花点时间来调试它。抱歉的。
https://stackoverflow.com/questions/53635334
复制相似问题