K
K
keeksiik2021-08-20 16:28:22
Python
keeksiik, 2021-08-20 16:28:22

Why does it give an error when trying to display a value from an Excel cell?

Simple code:

import openpyxl

wb = openpyxl.reader.excel.load_workbook(filename="test.xlsx")
wb.active = 0

sheet = wb.active
print(sheet['A1'].value)


Error: PermissionError: [Errno 13] Permission denied: 'test.xlsx'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
12rbah, 2021-08-20
@12rbah

PermissionError Permission denied:
Try to translate the error text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question