作者oppa0312 (OPPA)
看板Google
标题[心得] Google Drive 同部与备份程式错误解法
时间Fri Sep 8 11:49:51 2017
昨天安装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://webptt.com/cn.aspx?n=bbs/Google/M.1504842593.A.88B.html
※ 编辑: oppa0312 (163.21.14.132), 09/08/2017 11:51:58
1F:推 andy199113: 09/08 13:54
2F:推 NKAC: 推分享 09/08 15:27