PS C:UsersAsitDesktoppython> python -u "c:UsersAsitDesktoppythonexcel_projectexcel.py"
Traceback (most recent call last):
File "c:UsersAsitDesktoppythonexcel_projectexcel.py", line 3, in <module>
wb = xl.load_workbook('transactions.xlsx')
File "C:UsersAsitAppDataLocalProgramsPythonPython313Libsite-packagesopenpyxlreaderexcel.py", line 346, in load_workbook
reader = ExcelReader(filename, read_only, keep_vba,
data_only, keep_links, rich_text)
File "C:UsersAsitAppDataLocalProgramsPythonPython313Libsite-packagesopenpyxlreaderexcel.py", line 123, in __init__
self.archive = _validate_archive(fn)
~~~~~~~~~~~~~~~~~^^^^
File "C:UsersAsitAppDataLocalProgramsPythonPython313Libsite-packagesopenpyxlreaderexcel.py", line 95, in _validate_archive
archive = ZipFile(filename, 'r')
File "C:UsersAsitAppDataLocalProgramsPythonPython313Libzipfile__init__.py", line 1362, in __init__
self.fp = io.open(file, filemode)
~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'transactions.xlsx'
Inspite of being in the same folder its showing file not found error
I tried using absolute path and putting the in different folders. Its not working.
New contributor
Asit Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1