看板 Google 關於我們 聯絡資訊
昨天安裝Google Drive (雲端硬碟) 的 Backup and Sync from Google(同部與備份程式) 安裝完畢後執行 會出現 Traceback(most recent call last):File"<string>",line 42,in<module>File"T:\src\piper\googleclient\third_party\py\pyinstaller\iu.py",line 478,in importHookFile"T:\src\piper\googleclient\third_party\py\pyinstaller\iu.py",line 522,in doimportFile"T:\src\piper\googleclient\apps\webdrive_sync\windows\build\pyi.win32\main\outPYZ1.pyz/windows.restart_app",line 35,in<module>File"T:\src\piper\googleclient\apps\webdrive_sync\windows\build\pyi.win32\main\outPYZ1.pyz/tempfile",line 269,in gettempdirFile"T:\src\piper\googleclient\apps\webdrive_sync\windows\build\pyi.win32\main\outPYZ1.pyz/tempfile",line 212,in_get_default_tempdirIOError:[Errno 2] No usable temporary directory found in ['c:\\Users\\\za8K\zb5X\\AppData\\Local\\Temp','c:\\Users\\\za8K\zb5X\\AppData\\Local\\Temp','c:\\temp','c:\\tmp','\\temp','\\tep','c:\\Windows\\system3 一開始是看到這篇解法有成功 https://goo.gl/8kCSFH It seems this issue occurs on some users and there is possible workaround (on command line): (1) to create and link a virtual temp folder by using this command -- MKLINK /D %temp%\Temp %temp% (2) manually start google drive application by using this command -- "C:\Program Files (x86)\Google\Drive\Googledrivesync.exe" /autostart For convenient, it is recommended that you could write a batch file for later use if above workaround is ok. 以上都用最高管理員權限CMD執行 但後來發現關閉程式後,再打開會有同樣的問題。 後來把主程式內容 的相容性 設為以系統管理員身分執行 https://i.imgur.com/H9xCtYT.jpg
C:\Program Files (x86)\Google\Drive\googledrivesync.exe (主程式路徑) 右下角就會出現程式執行的狀態了, 所以應該是主程式權限不足的關係,要另外設定。 分享一下我個人的解法。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 163.21.14.132 ※ 文章網址: https://www.ptt.cc/bbs/Google/M.1504842593.A.88B.html ※ 編輯: oppa0312 (163.21.14.132), 09/08/2017 11:51:58
andy199113: 09/08 13:54
NKAC: 推分享 09/08 15:27