rknn-toolkit icon indicating copy to clipboard operation
rknn-toolkit copied to clipboard

RKNN(verbose_file)中对verbose_file的处理有bug

Open yinghuang opened this issue 2 years ago • 2 comments

环境:rknn_toolkit-1.7.3-cp36-cp36m-win_amd64.whl 在PC上测试发现一个bug, verbose_file如果是自定义路径,则一切正常。 verbose_file如果是None,则报错 Traceback (most recent call last): File "D:\code\Anaconda3\envs\toy\lib\weakref.py", line 624, in _exitfunc f() File "D:\code\Anaconda3\envs\toy\lib\weakref.py", line 548, in call return info.func(*info.args, **(info.kwargs or {})) File "D:\code\Anaconda3\envs\toy\lib\tempfile.py", line 799, in _cleanup _shutil.rmtree(name) File "D:\code\Anaconda3\envs\toy\lib\shutil.py", line 500, in rmtree return _rmtree_unsafe(path, onerror) File "D:\code\Anaconda3\envs\toy\lib\shutil.py", line 395, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "D:\code\Anaconda3\envs\toy\lib\shutil.py", line 393, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'D:\tmp\tmp250d_uzl\log_feedback_to_the_rknn_toolkit_dev_team.log'

怀疑里面对tempfile模块的用法有问题,导致临时文件删除错误

yinghuang avatar Feb 16 '23 08:02 yinghuang

我也碰到了这个问题,环境是windows11, python3.6.8。有什么好的解决办法吗

k-user avatar Feb 17 '23 05:02 k-user

@yinghuang 大佬 我也遇到了这个问题 怎么解决的

zeng121 avatar Jul 12 '23 10:07 zeng121