File "<base_path_removed>\openvasreporting\libs\export.py", line 545, in export_to_word
os.remove(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\someuser\\AppData\\Local\\Temp\\tmpbdnxw19g.png'
solution is in libs/export.py to comment out the first "os.remove(path)" in "export_to_word" and add the line "os.close(fd) between the second run_chart... and os.remove(path)...
ie
...
run_chart.add_picture(path, width=Cm(8.0))
when exporting "-f docx" returns error:
solution is in libs/export.py to comment out the first "os.remove(path)" in "export_to_word" and add the line "os.close(fd) between the second run_chart... and os.remove(path)... ie ... run_chart.add_picture(path, width=Cm(8.0))
os.remove(path)
... run_chart.add_picture(path, width=Cm(8.0)) os.close(fd) os.remove(path) ...