fetch/gclient sync は、Windows Server 2012 (64 ビット) ホストのターミナル ウィンドウから正常に機能します。TeamCity ビルド エージェントは 32 ビット アプリケーションであり、変更できません。ビルドステップとして fetch/gclient sync を実行しようとすると失敗します。エラーメッセージは次のとおりです。
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')
そして、私はそれに対する解決策を持っていません。
それを修正する方法はありますか?