Python Forum
[python]FileNotFoundError...System cannot find the path specified
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[python]FileNotFoundError...System cannot find the path specified
#1
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.
Reply
#2
It's next to tell exactly why you are getting this error without seeing your code.
Please post the code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't Find Path hatflyer 8 950 Oct-30-2023, 06:17 AM
Last Post: Gribouillis
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,496 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  Need Help: FileNotFoundError:[Errno 2] No such file or directory python202209 5 2,525 Sep-12-2022, 04:50 AM
Last Post: python202209
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,150 Sep-09-2021, 01:25 PM
Last Post: Yoriz
Exclamation "System cannot find path specified"(Geany) kiwi99 2 3,775 Mar-18-2021, 07:37 PM
Last Post: kiwi99
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,495 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  FileNotFoundError: [Errno 2] No such file or directory: 5l3y3r 6 8,009 Nov-02-2020, 12:48 PM
Last Post: 5l3y3r
  How could i change the python interpreter path of os.system() 12019202386 2 2,487 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  Shutil FileNotFoundError: Errno 2 Help lord_kaiser 8 10,361 Aug-10-2020, 08:45 AM
Last Post: lord_kaiser
  Getting FileNotFoundError: [Errno 2] ,if tries to acees same file from sub-directory pmpinaki 2 2,458 May-04-2020, 03:39 PM
Last Post: pmpinaki

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020