Closed bear-zd closed 3 years ago
首先感谢你们的代码,让我可以实现网盘文件同步功能。 Prerequisites / 报告前提 按照readme所给出的使用方法我进行操作。 Describe the bug / 描述 bug 在使用的过程中,成功的添加用户并能进行目录操作,但当我尝试使用 “BaiduPCS-Py download wordcount_v2.xlsx” 指令下载云盘文件时出现了权限错误问题:PermissionError: [WinError 32],详细内容内容如下 To Reproduce / 复现问题 1.添加用户,且使用 “BaiduPCS-Py who” 可以查看到正确的用户
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\a8275\AppData\Local\Programs\Python\Python37\lib\concurrent\futures_base.py", line 324, in _invoke_callbacks callback(self) File "c:\users\a8275\desktop\useless thing\computer network\socket\env\lib\site-packages\baidupcs_py\commands\download.py", line 159, in _wrap_done_callback done_callback(fut) File "c:\users\a8275\desktop\useless thing\computer network\socket\env\lib\site-packages\baidupcs_py\commands\download.py", line 77, in done_callback shutil.move(localpath_tmp, localpath) File "C:\Users\a8275\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 572, in move os.unlink(src) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'wordcount_v2.xlsx.tmp' ’‘’ 错误截图
Envrionment / 运行环境
目前没有 Windows 10 环境,但我尝试修复了,试试最新版本 v0.6.18,看看还有没有问题。
谢谢,现在文件能成功下载了!
首先感谢你们的代码,让我可以实现网盘文件同步功能。 Prerequisites / 报告前提 按照readme所给出的使用方法我进行操作。 Describe the bug / 描述 bug 在使用的过程中,成功的添加用户并能进行目录操作,但当我尝试使用 “BaiduPCS-Py download wordcount_v2.xlsx” 指令下载云盘文件时出现了权限错误问题:PermissionError: [WinError 32],详细内容内容如下 To Reproduce / 复现问题 1.添加用户,且使用 “BaiduPCS-Py who” 可以查看到正确的用户
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\a8275\AppData\Local\Programs\Python\Python37\lib\concurrent\futures_base.py", line 324, in _invoke_callbacks callback(self) File "c:\users\a8275\desktop\useless thing\computer network\socket\env\lib\site-packages\baidupcs_py\commands\download.py", line 159, in _wrap_done_callback done_callback(fut) File "c:\users\a8275\desktop\useless thing\computer network\socket\env\lib\site-packages\baidupcs_py\commands\download.py", line 77, in done_callback shutil.move(localpath_tmp, localpath) File "C:\Users\a8275\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 572, in move os.unlink(src) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'wordcount_v2.xlsx.tmp' ’‘’ 错误截图
Envrionment / 运行环境