Excel tutorial - issue loading file

Iā€™m attempting the tutorial for excel files and running into this issue below with loading the file. I have copied the excel sheet to the root folder and it is running into issues still. What could be happening here?

Documents & spreadsheets - Spreadsheet calculator | VIKTOR Documentation

Hi @PCars ,

Apologies for missing this question. I believe that you failed to import the object File from the viktor library:

from viktor import File

Also good to note, when using paths, it is good practice to refer to these paths relatively, e.g.:

spreadsheet_path = Path(__file__).parent / "claculation_sheet.xlsx"

I hope this makes it clear?

1 Like

Thank you, yes I overlooked that part!