"D:\Power BI & Python\venv\Scripts\python.exe" "D:/Power BI & Python/Test.py"
Traceback (most recent call last):
File "D:\Power BI & Python\venv\lib\site-packages\xlsxwriter\workbook.py", line 324, in close
self._store_workbook()
File "D:\Power BI & Python\venv\lib\site-packages\xlsxwriter\workbook.py", line 659, in _store_workbook
raise e
File "D:\Power BI & Python\venv\lib\site-packages\xlsxwriter\workbook.py", line 656, in _store_workbook
xlsx_file = ZipFile(self.filename, "w", compression=ZIP_DEFLATED,
File "C:\Users\Aziz\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1249, in __init__
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: 'D:/filename.xlsx'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Power BI & Python\Test.py", line 5, in <module>
workbook.close()
File "D:\Power BI & Python\venv\lib\site-packages\xlsxwriter\workbook.py", line 326, in close
raise FileCreateError(e)
xlsxwriter.exceptions.FileCreateError: [Errno 13] Permission denied: 'D:/filename.xlsx'
Process finished with exit code 1