Python Forum

Full Version: [python]FileNotFoundError...System cannot find the path specified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am new to programming and am trying to run some code. I am getting the following error:

FileNotFoundError:  [WinError3] The system cannot find the path specified: 'data'
There is a 'data' file that came with the code(code is from Github) as I am viewing it in PyCharm IDE.

I type
 import os os.listdir
and i get a list of files...'data' is not listed though. How do I add a path to the file directory so that the 'data' file gets specified? There are two excel csv.spreadsheets in the 'data' file. The program is suppose to write a new excel spreadsheet for the recent day and make calculations. I am stuck. Please help.

FYI...i have added a path to the variable environment under advanced system settings but the path is still not recognized.

Thank you for your attention in this matter.
It's next to tell exactly why you are getting this error without seeing your code.
Please post the code.